Skip to content

Commit 35b2175

Browse files
authored
test: fix first run speed (#675)
1 parent 3316d80 commit 35b2175

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
moduleFileExtensions: ['js', 'json', 'ts', 'tsx'],
44
rootDir: '.',
55
transform: {
6-
'^.+\\.[jt]sx?$': 'ts-jest',
6+
'^.+\\.tsx?$': ['ts-jest', {tsconfig: './tsconfig.test.json'}],
77
},
88
transformIgnorePatterns: ['node_modules/(?!(@gravity-ui|react-github-btn|tinygesture)/)'],
99
coverageDirectory: './coverage',

tsconfig.test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@gravity-ui/tsconfig",
3+
"compilerOptions": {
4+
"resolveJsonModule": true,
5+
"module": "CommonJS",
6+
"jsx": "react"
7+
}
8+
}

0 commit comments

Comments
 (0)