-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to @testing-library/react (#362)
react-test-renderer is finally going away. There was an attempt here to add tests of the actual image data generated by QRCodeCanvas but that turned out to be too unreliable across environments. Perhaps another time. This also required removing testing across multiple versions of React. I'm not actually too worried about that but I left the shell of that in there. I would like to test against 18 & 19 at least, even if technically compatible further back. v17 is 4 years old. 16.8 (hooks) is over 5.
- Loading branch information
Showing
6 changed files
with
1,310 additions
and
494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
testEnvironment: 'jsdom', | ||
testEnvironmentOptions: {resources: 'usable'}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.