Skip to content

Commit 163db0b

Browse files
committed
chore: Set test directory via config rather than flag
1 parent 1d91d51 commit 163db0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ module.exports = {
44
cacheDirectory: '.test',
55
collectCoverage: true,
66
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/stories/**'],
7-
setupFilesAfterEnv: ['<rootDir>/src/utils/test-matchers.tsx', '<rootDir>/src/utils/test-deprecations.tsx']
7+
setupFilesAfterEnv: ['<rootDir>/src/utils/test-matchers.tsx', '<rootDir>/src/utils/test-deprecations.tsx'],
8+
testRegex: '/src/__tests__/.*\\.[jt]sx?$'
89
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"copy-esm-types": "copyfiles -u 1 \"./lib/**/*.d.ts\" ./lib-esm",
1818
"lint": "eslint '**/*.{js,ts,tsx}'",
1919
"lint:fix": "eslint '**/*.{js,ts,tsx}' --fix",
20-
"test": "jest -- src",
21-
"update-snapshots": "jest -u -- src",
20+
"test": "jest",
2221
"watch": "jest --watch --no-coverage",
2322
"playroom:start": "playroom start",
2423
"playroom:build": "playroom build",

0 commit comments

Comments
 (0)