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.
master
Kevin C. Coram 2019-09-03 18:58:29 -04:00
parent 3b43037e66
commit 2c6fde0acc
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,8 @@
"builder": "@nrwl/jest:jest", "builder": "@nrwl/jest:jest",
"options": { "options": {
"jestConfig": "libs/contact-model/jest.config.js", "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"
} }
} }
} }

View File

@ -6,5 +6,4 @@ module.exports = {
}, },
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../coverage/libs/contact-model', coverageDirectory: '../../coverage/libs/contact-model',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts']
}; };