mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[jest] switch to jest-environment-jsdom (#95125)
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
de3a7d6f0d
commit
0551472cd9
5 changed files with 11 additions and 1 deletions
|
@ -697,6 +697,7 @@
|
|||
"jest-cli": "^26.6.3",
|
||||
"jest-diff": "^26.6.2",
|
||||
"jest-environment-jsdom-thirteen": "^1.0.1",
|
||||
"jest-environment-jsdom": "^26.6.2",
|
||||
"jest-raw-loader": "^1.0.1",
|
||||
"jest-silent-reporter": "^0.2.1",
|
||||
"jest-snapshot": "^26.6.2",
|
||||
|
|
|
@ -68,7 +68,7 @@ module.exports = {
|
|||
],
|
||||
|
||||
// The test environment that will be used for testing
|
||||
testEnvironment: 'jest-environment-jsdom-thirteen',
|
||||
testEnvironment: 'jest-environment-jsdom',
|
||||
|
||||
// The glob patterns Jest uses to detect test files
|
||||
testMatch: ['**/*.test.{js,mjs,ts,tsx}'],
|
||||
|
|
|
@ -9,4 +9,7 @@ module.exports = {
|
|||
preset: '@kbn/test',
|
||||
rootDir: '../../..',
|
||||
roots: ['<rootDir>/x-pack/plugins/global_search_bar'],
|
||||
|
||||
// TODO: migrate to "jest-environment-jsdom" https://github.com/elastic/kibana/issues/95200
|
||||
testEnvironment: 'jest-environment-jsdom-thirteen',
|
||||
};
|
||||
|
|
|
@ -9,4 +9,7 @@ module.exports = {
|
|||
preset: '@kbn/test',
|
||||
rootDir: '../../..',
|
||||
roots: ['<rootDir>/x-pack/plugins/lens'],
|
||||
|
||||
// TODO: migrate to "jest-environment-jsdom" https://github.com/elastic/kibana/issues/95202
|
||||
testEnvironment: 'jest-environment-jsdom-thirteen',
|
||||
};
|
||||
|
|
|
@ -9,4 +9,7 @@ module.exports = {
|
|||
preset: '@kbn/test',
|
||||
rootDir: '../../..',
|
||||
roots: ['<rootDir>/x-pack/plugins/security_solution'],
|
||||
|
||||
// TODO: migrate to "jest-environment-jsdom" https://github.com/elastic/kibana/issues/95201
|
||||
testEnvironment: 'jest-environment-jsdom-thirteen',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue