We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fb05aa commit 14480fdCopy full SHA for 14480fd
jest.config.js
@@ -1,6 +1,23 @@
1
-const {jest: jestConfig} = require('./src/config')
+const {
2
+ globals,
3
+ transformIgnorePatterns,
4
+ ...config
5
+} = require('./src/config/jest.config')
6
-module.exports = Object.assign(jestConfig, {
7
+/** @type{import('ts-jest/dist/types').InitialOptionsTsJest} */
8
+module.exports = {
9
+ ...config,
10
roots: ['<rootDir>/src'],
11
coverageThreshold: null,
-})
12
+ transformIgnorePatterns: [...transformIgnorePatterns, '.prettierrc.js'],
13
+ globals: {
14
+ 'ts-jest': {
15
+ ...globals['ts-jest'],
16
+ tsconfig: './src/tsconfig.json',
17
+ diagnostics: {
18
+ warnOnly: true,
19
+ exclude: ['src/scripts/**/*.js', 'src/config/**/*.js'],
20
+ },
21
22
23
+}
0 commit comments