Skip to content

Commit b781c28

Browse files
Replace jsdom with happy-dom testing environment to enable Modal tests (#461)
`happy-dom` is used due to missing HtmlDialogElement support in `jest`. Just to mention, `happy-dom` provides partial support for dialog element, so not all test can be implemented.
1 parent 425fa15 commit b781c28

File tree

10 files changed

+112
-846
lines changed

10 files changed

+112
-846
lines changed

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
setupFilesAfterEnv: [
1414
'<rootDir>/tests/setupTestingLibrary.js',
1515
],
16-
testEnvironment: 'jsdom',
16+
testEnvironment: '@happy-dom/jest-environment',
1717
transformIgnorePatterns: [
1818
'node_modules/(?!(@react-ui-org))',
1919
],

0 commit comments

Comments
 (0)