Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kbn-test] upgrade to babel7, add ts support #32168

Merged
merged 2 commits into from
Feb 28, 2019

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Feb 28, 2019

In order to support typescript in @kbn/test without making the build process complicated, I'm upgrading to babel7, adding a babel7 compatible preset at @kbn/babel-preset/node_preset_7 in the process.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


module.exports = {
presets: ['@kbn/babel-preset/node_preset_7'],
ignore: ['**/*.test.js'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: why do we exclude JS tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because jest implements its own preset for tests, and excluding them here prevents them from being built when we build the package for use.

@spalger spalger merged commit ae3632b into elastic:master Feb 28, 2019
spalger pushed a commit to spalger/kibana that referenced this pull request Feb 28, 2019
* [babel] add babel7 compatible node preset

* [kbn-test] upgrade to babel7 preset
spalger pushed a commit to spalger/kibana that referenced this pull request Feb 28, 2019
* [babel] add babel7 compatible node preset

* [kbn-test] upgrade to babel7 preset
spalger pushed a commit to spalger/kibana that referenced this pull request Feb 28, 2019
* [babel] add babel7 compatible node preset

* [kbn-test] upgrade to babel7 preset
spalger pushed a commit that referenced this pull request Feb 28, 2019
* [babel] add babel7 compatible node preset

* [kbn-test] upgrade to babel7 preset
spalger pushed a commit that referenced this pull request Feb 28, 2019
* [babel] add babel7 compatible node preset

* [kbn-test] upgrade to babel7 preset
spalger pushed a commit that referenced this pull request Feb 28, 2019
Backports the following commits to 6.7:
 - [kbn-test] upgrade to babel7, add ts support  (#32168)
@spalger
Copy link
Contributor Author

spalger commented Feb 28, 2019

7.x/7.1: dae372c
7.0: 1194d14
6.7: 98b991c

@spalger spalger deleted the implement/babel7/kbn-test branch February 28, 2019 19:18
@mshustov mshustov mentioned this pull request Mar 1, 2019
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants