Closed konstantinschuette closed 1 year ago
For Angular 15 or newer there is no angular.json
in NX workspace (and no support for Angular workspace concept). We have the very same issue in our team for folks using WebStorm, my bet is JetBrains plugin does not support anything else as of now (so that's not NX specific problem). The same problem with VSCode plugins for Karma tests, if they resolve project by looking for angular.json
:
The NX setup/migration:
Splits your angular.json into project.json files for each project with updated paths.
For Angular 15 or newer there is no
angular.json
in NX workspace (and no support for Angular workspace concept). We have the very same issue in our team for folks using WebStorm, my bet is JetBrains plugin does not support anything else as of now (so that's not NX specific problem). The same problem with VSCode plugins for Karma tests, if they resolve project by looking forangular.json
:The NX setup/migration:
Splits your angular.json into project.json files for each project with updated paths.
Thank you! How do you start single tests then?
We do not have a simple solution, for now just CLI (can be automated wtihin WS I think with shortucts for currently focused file, same in VSCode):
nx test admin --include=**/page.component.spec.ts
Hey all!
We no longer support using the Angular CLI as your CLI. Nx is it's own CLI.
The issue in question around Webstorm not running the single karma tests is due to lack of feature support on the IDE's part.
There is potential that you could set up a Run Configuration that uses a node script to do this for you, however, as previous comment has linked a feature request to add better Nx support to Webstorm. This issue discussion should be continued there.
Thank you for raising this!
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
When I wan't to run a test via the GUI of Webstorm, this error shows up:
Expected Behavior
The test should start without any error
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace --cli=angular --defaultBase=main --name=my-monorepo --nxCloud --packageManager=npm --preset=empty
cd my-monorepo
npm install @nrwl/angular
nx generate @nrwl/angular:app foobar --style=scss --unitTestRunner=karma
Nx Report
Failure Logs
No response
Additional Information
No response