Skip to content

Commit

Permalink
[jest] switch to jest-environment-jsdom (#95125)
Browse files Browse the repository at this point in the history
Co-authored-by: spalger <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
3 people authored Mar 24, 2021
1 parent de3a7d6 commit 0551472
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-test/jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'],
Expand Down
3 changes: 3 additions & 0 deletions x-pack/plugins/global_search_bar/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
3 changes: 3 additions & 0 deletions x-pack/plugins/lens/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
3 changes: 3 additions & 0 deletions x-pack/plugins/security_solution/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

0 comments on commit 0551472

Please sign in to comment.