Skip to content

Commit 19c1f5b

Browse files
committed
Add hook testing
Notes: - Run `npm install --save-dev @testing-library/react` - Run `npm install -D jest-environment-jsdom`
1 parent 993904d commit 19c1f5b

File tree

4 files changed

+1682
-6
lines changed

4 files changed

+1682
-6
lines changed

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default {
144144
// snapshotSerializers: [],
145145

146146
// The test environment that will be used for testing
147-
testEnvironment: 'node',
147+
testEnvironment: 'jsdom',
148148

149149
// Options that will be passed to the testEnvironment
150150
// testEnvironmentOptions: {},

0 commit comments

Comments
 (0)