Creating a new Workspace, and then Angular app should allow selection of Karma as a test runner
only Jest and Cypress is now available. Karma and Protractor have disappeared.
Why have you silently dropped support for Karma and Jasmine when Angular CLI still supports it as a first class citizen? (I've read your Jest doc)
I _totally_ agree with you that we should all go to Jest - and plan to go that way for all future projects. But, dropping support for existing projects silently is a bit troublesome. I'm trying to re-scaffold a new workspace @latest and drop in an old project, but I can't without involved configuration.
Is there a location/channel I can watch for breaking changes like this that I've missed? This change doesn't appear on Google search.
Please provide any relevant information about your setup:
The option is still there. We just removed the prompt.
You can pass it like this:
ng g @nrwl/angular:app myapp --unit-test-runner=karma
@vsavkin why does the schematic ignore the defaults specified in angular.json?
// angular.json
// ...
"schematics": {
"@nrwl/schematics:component": {
"styleext": "scss"
},
"@nrwl/schematics:library": {
"unitTestRunner": "karma",
"framework": "angular"
},
"@nrwl/schematics:application": {
"unitTestRunner": "karma",
"e2eTestRunner": "protractor"
},
"@nrwl/schematics:node-application": {
"framework": "express"
}
}
}
ng g lib mylib uses jest, even though the config in angular.json sets the unitTestRunner to karma.
Most helpful comment
The option is still there. We just removed the prompt.
You can pass it like this: