Skip to content

Commit 99ca63f

Browse files
committed
chore: cleanup test setup
1 parent ad3c537 commit 99ca63f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

angular.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@
8787
"test": {
8888
"builder": "@nrwl/jest:jest",
8989
"options": {
90-
"jestConfig": "apps/example-app/jest.config.js",
91-
"setupFile": "apps/example-app/src/test-setup.ts"
90+
"jestConfig": "apps/example-app/jest.config.js"
9291
},
9392
"outputs": ["coverage/"]
9493
}
@@ -232,8 +231,7 @@
232231
"test": {
233232
"builder": "@nrwl/jest:jest",
234233
"options": {
235-
"jestConfig": "projects/testing-library/jest.config.js",
236-
"setupFile": "projects/testing-library/test-setup.ts"
234+
"jestConfig": "projects/testing-library/jest.config.js"
237235
},
238236
"outputs": ["coverage/projects/testing-library"]
239237
}
@@ -284,8 +282,7 @@
284282
"test": {
285283
"builder": "@nrwl/jest:jest",
286284
"options": {
287-
"jestConfig": "projects/jest-utils/jest.config.js",
288-
"setupFile": "projects/jest-utils/test-setup.ts"
285+
"jestConfig": "projects/jest-utils/jest.config.js"
289286
},
290287
"outputs": ["coverage/projects/jest-utils"]
291288
}

projects/jest-utils/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ module.exports = {
55
color: 'magenta',
66
},
77
preset: '../../jest.preset.js',
8+
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
89
};

projects/testing-library/jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ module.exports = {
55
color: 'magenta',
66
},
77
preset: '../../jest.preset.js',
8+
setupFilesAfterEnv: ['<rootDir>/test-setup.ts'],
89
};

0 commit comments

Comments
 (0)