Issue
I've recently switched to Jest for unit testing
Previously I was doing this:
ng test --configuration=unit-tests
But I am not sure how to run my Jest tests with an Angular configuration, I want something like this:
jest --configuration=unit-tests
How do I run my Jest tests with a specified Angular configuration?
Solution
In angular.json file specify jest runner for test architect:
"test": {
"builder": "@angular-builders/jest:run",
"options": {}
},
I assume that you have installed it, when switched to jest
Answered By - vitaliy kotov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.