Skip to content

Commit 2359aad

Browse files
WesSouzaarturbien
authored andcommitted
chore: update tests for newer test libraries versions
- jest-environment-jsdom must be installed and configured separately - Timers changed so setTimeout can only be observed on the legacy fake timers - waitForDomChange doesn't exist anymore - toBeEmpty is deprecated, should be replaced with toBeEmptyDOMElement
1 parent 059925a commit 2359aad

File tree

5 files changed

+1131
-179
lines changed

5 files changed

+1131
-179
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
2-
setupFilesAfterEnv: ['<rootDir>/test/setup-test']
2+
setupFilesAfterEnv: ['<rootDir>/test/setup-test'],
3+
testEnvironment: 'jsdom'
34
};

0 commit comments

Comments
 (0)