Nx: How to remove cypress from nx workspace

Created on 27 May 2020  路  2Comments  路  Source: nrwl/nx

I want to use codeceptjs instead of cyppress. I've remove all cypress-related files but in package-lock.json
"@nrwl/angular": {
"version": "9.2.4",
"resolved": "https://registry.npmjs.org/@nrwl/angular/-/angular-9.2.4.tgz",
"integrity": "sha512-ySaT9hDCEMxdYPQLzOwxYaV94iUsVqUvtEsRXig7PPwCiAojX3bjL04bC0l2RUptQsLfXScow1QA6IM4jyB7cA==",
"requires": {
"@angular-devkit/schematics": "~9.1.0",
"@nrwl/cypress": "9.2.4",
"@nrwl/jest": "9.2.4",
"@schematics/angular": "~9.1.0",
"jasmine-marbles": "~0.6.0"
}

},

"@nrwl/cypress": "9.2.4" in reqiuered dependencies. I use azure pipeline and downloading additional dependencies impact to running time.

Is there way to remove @nrwl/cypress dependency from @nrwl/angular?

testing tools question / discussion

Most helpful comment

@nrwl/cypress doesn't bring in cypress so you don't have to be concerned about removing that one.

You can set a default for the application schematics to use "none" for e2e test runner:

workspace.json (at the bottom)

  "schematics": {
    "@nrwl/angular:application": {
      "unitTestRunner": "jest",
      "e2eTestRunner": "none"
    },

All 2 comments

If you just want to prohibit the downloading of the cypress binaries, which are quite large, you can set the environment variable CYPRESS_INSTALL_BINARY to 0.

@nrwl/cypress doesn't bring in cypress so you don't have to be concerned about removing that one.

You can set a default for the application schematics to use "none" for e2e test runner:

workspace.json (at the bottom)

  "schematics": {
    "@nrwl/angular:application": {
      "unitTestRunner": "jest",
      "e2eTestRunner": "none"
    },
Was this page helpful?
0 / 5 - 0 ratings

Related issues

SWGeekPD picture SWGeekPD  路  3Comments

danieldanielecki picture danieldanielecki  路  3Comments

Svancara picture Svancara  路  3Comments

zpydee picture zpydee  路  3Comments

zachnewburgh picture zachnewburgh  路  3Comments