Skip to content

Commit c69618a

Browse files
committed
Squelch jest noise
1 parent 9b13d1e commit c69618a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

jest.config.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ module.exports = {
6464

6565
// A set of global variables that need to be available in all test environments
6666
// globals: {},
67-
globals: {
68-
'ts-jest': {
69-
tsconfig: 'tsconfig.json',
70-
},
71-
},
7267

7368
// 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.
7469
// maxWorkers: "50%",
@@ -130,9 +125,7 @@ module.exports = {
130125
// roots: [
131126
// "<rootDir>"
132127
// ],
133-
roots: [
134-
'<rootDir>src/',
135-
],
128+
roots: ['<rootDir>src/'],
136129

137130
// Allows you to use a custom runner instead of Jest's default test runner
138131
// runner: "jest-runner",
@@ -190,7 +183,12 @@ module.exports = {
190183
// A map from regular expressions to paths to transformers
191184
// transform: undefined,
192185
transform: {
193-
'^.+\\.tsx?$': 'ts-jest',
186+
'^.+\\.tsx?$': [
187+
'ts-jest',
188+
{
189+
tsconfig: 'tsconfig.json',
190+
},
191+
],
194192
},
195193

196194
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation

0 commit comments

Comments
 (0)