From 2c6fde0accb719567805a698908dba049c064337 Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Tue, 3 Sep 2019 18:58:29 -0400 Subject: [PATCH] Move reference to test-setup.ts to angular.json Move the reference to the test-setup.ts file in the contact-model library from jest.config.js to angular.json, to match how things are set up for the applications. --- angular.json | 3 ++- libs/contact-model/jest.config.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/angular.json b/angular.json index 7fb9ad3..e1d5572 100644 --- a/angular.json +++ b/angular.json @@ -21,7 +21,8 @@ "builder": "@nrwl/jest:jest", "options": { "jestConfig": "libs/contact-model/jest.config.js", - "tsConfig": "libs/contact-model/tsconfig.spec.json" + "tsConfig": "libs/contact-model/tsconfig.spec.json", + "setupFile": "libs/contact-model/src/test-setup.ts" } } } diff --git a/libs/contact-model/jest.config.js b/libs/contact-model/jest.config.js index db6b053..bff341e 100644 --- a/libs/contact-model/jest.config.js +++ b/libs/contact-model/jest.config.js @@ -6,5 +6,4 @@ module.exports = { }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], coverageDirectory: '../../coverage/libs/contact-model', - setupFilesAfterEnv: ['/src/test-setup.ts'] };