[jest] switch to jest-environment-jsdom (#95125) (#95326)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2021-03-24 14:02:58 -04:00 committed by GitHub
parent 7ae2271d6a
commit 4193030cc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 1 deletions

View file

@ -694,6 +694,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",

View file

@ -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}'],

View file

@ -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',
};

View file

@ -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',
};

View file

@ -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',
};