mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
2836d73021
commit
7c52b5a32a
2 changed files with 8 additions and 1 deletions
|
@ -15,6 +15,9 @@
|
|||
"moduleNameMapper": {
|
||||
"^ui_framework/components": "<rootDir>/ui_framework/components"
|
||||
},
|
||||
"setupFiles": [
|
||||
"<rootDir>/src/jest/setup/babel_polyfill.js"
|
||||
],
|
||||
"coverageDirectory": "<rootDir>/target/jest-coverage",
|
||||
"coverageReporters": [
|
||||
"html"
|
||||
|
@ -38,4 +41,4 @@
|
|||
"snapshotSerializers": [
|
||||
"<rootDir>/node_modules/enzyme-to-json/serializer"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
4
src/jest/setup/babel_polyfill.js
Normal file
4
src/jest/setup/babel_polyfill.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Note: In theory importing the polyfill should not be needed, as Babel should
|
||||
// include the necessary polyfills when using `babel-preset-env`, but for some
|
||||
// reason it did not work. See https://github.com/elastic/kibana/issues/14506
|
||||
import '../../babel-register/polyfill';
|
Loading…
Add table
Add a link
Reference in a new issue