You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jest.config.js
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,6 @@ module.exports = {
64
64
65
65
// A set of global variables that need to be available in all test environments
66
66
// globals: {},
67
-
globals: {
68
-
'ts-jest': {
69
-
tsconfig: 'tsconfig.json',
70
-
},
71
-
},
72
67
73
68
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
74
69
// maxWorkers: "50%",
@@ -130,9 +125,7 @@ module.exports = {
130
125
// roots: [
131
126
// "<rootDir>"
132
127
// ],
133
-
roots: [
134
-
'<rootDir>src/',
135
-
],
128
+
roots: ['<rootDir>src/'],
136
129
137
130
// Allows you to use a custom runner instead of Jest's default test runner
138
131
// runner: "jest-runner",
@@ -190,7 +183,12 @@ module.exports = {
190
183
// A map from regular expressions to paths to transformers
191
184
// transform: undefined,
192
185
transform: {
193
-
'^.+\\.tsx?$': 'ts-jest',
186
+
'^.+\\.tsx?$': [
187
+
'ts-jest',
188
+
{
189
+
tsconfig: 'tsconfig.json',
190
+
},
191
+
],
194
192
},
195
193
196
194
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
0 commit comments