Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Jul 21, 2023
1 parent 0ae26b1 commit 213aa42
Show file tree
Hide file tree
Showing 5 changed files with 10,369 additions and 3,825 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
'<rootDir>/jest/matchMediaMock.js',
'<rootDir>/jest/resizeObserverMock.js'
],
testEnvironment: 'jest-environment-jsdom',
testEnvironment: './jest/CustomTestEnvironment.js',
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(ol|antd|@babel|jest-runtime|(rc-*[a-z]*)|@ant-design|@terrestris))'
],
Expand Down
10 changes: 10 additions & 0 deletions jest/CustomTestEnvironment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import JSDOMEnvironment from 'jest-environment-jsdom';

module.exports = class CustomTestEnvironment extends JSDOMEnvironment {
async setup() {
await super.setup();

// https://github.com/jsdom/jsdom/issues/3363
this.global.structuredClone = structuredClone;
}
};
Loading

0 comments on commit 213aa42

Please sign in to comment.