-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Conversation
💚 Build Succeeded |
There was a problem hiding this 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'], |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
* [babel] add babel7 compatible node preset * [kbn-test] upgrade to babel7 preset
* [babel] add babel7 compatible node preset * [kbn-test] upgrade to babel7 preset
* [babel] add babel7 compatible node preset * [kbn-test] upgrade to babel7 preset
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.