Skip to content

Commit

Permalink
test: fix first run speed (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd authored Nov 7, 2023
1 parent 3316d80 commit 35b2175
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
moduleFileExtensions: ['js', 'json', 'ts', 'tsx'],
rootDir: '.',
transform: {
'^.+\\.[jt]sx?$': 'ts-jest',
'^.+\\.tsx?$': ['ts-jest', {tsconfig: './tsconfig.test.json'}],
},
transformIgnorePatterns: ['node_modules/(?!(@gravity-ui|react-github-btn|tinygesture)/)'],
coverageDirectory: './coverage',
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@gravity-ui/tsconfig",
"compilerOptions": {
"resolveJsonModule": true,
"module": "CommonJS",
"jsx": "react"
}
}

0 comments on commit 35b2175

Please sign in to comment.