Skip to content

Commit 6f33a47

Browse files
committed
Chore: Use jsdom by default and limit the scope of tests
1 parent b7fc750 commit 6f33a47

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ module.exports = {
44
globals: {
55
__DEV__: true,
66
},
7+
roots: ['src', 'test'],
8+
testEnvironment: 'jsdom',
79
setupFilesAfterEnv: ['./test/setup.ts'],
810
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"scripts": {
2424
"start": "tsdx watch",
2525
"build": "tsdx build",
26-
"test": "tsdx test --env=jsdom",
26+
"test": "tsdx test",
2727
"lint": "tk-lint",
2828
"format": "tk-format",
2929
"release": "yarn build && yarn test && tk-release"

0 commit comments

Comments
 (0)