Having issues with nx/multi application component testing setup #23594
-
I am running into trouble when trying to configure cypress component testing for an angular project using nx that is using v2 of the angular json schema. When running cypress open in one of the angular applications and setting up component testing I get this error when it starts trying to initialize the config: Could not find a project with projectType "application" in "angular.json. It seems like cypress component testing does not play nicely with the version 2 of angular.json schema or im doing something incredibly wrong :) (probably the second). Any insight would be appreciated! My angular.json: Each application has its own project.json which from what I gather is best practice for nx and multi application angular projects |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We've just released v10.7.0 which includes a new option in your We've also been working closely with the Nx team to bring Angular CT testing to nx workspaces. You should be able to utilize the new |
Beta Was this translation helpful? Give feedback.
We've just released v10.7.0 which includes a new option in your
cypress.config.ts
that allows you to customize the options passed into the angular dev-server, see #23161.We've also been working closely with the Nx team to bring Angular CT testing to nx workspaces. You should be able to utilize the new
projectConfig
, but Nx should have a first class API soon.