Currents plugin for Nx
npm install @codelabai/nxNX plugin for running cypress tests on Currents.dev
Install @currents/nx
``sh`
npm i --save-dev @currents/nx
Add currents target to your project configuration
`js
{
// ...
"targets": {
"currents": {
"executor": "@currents/nx:currents",
"options": {
"cypressExecutor": "e2e" // target name that runs "@nrwl/cypress:cypress"
}
},
"e2e": {
"executor": "@nrwl/cypress:cypress",
"options": {
// ...
},
"configurations": {
// ...
}
}
}
// ...
`
Run cypress tests, using Currents.dev as a dashboard
`sh`
nx run project:currents --group nx --record --key
- The plugin requires an already installed @nrwl/cypress and a configured target that's running @nrwl/cypress:cypress@currents/nx:currents
- will run @nrwl/cypress:cypress behind the scenescypress.json
- You can set predefined options in target definition
- Update your file with projectId` obtained at https://app.currents.dev
- Use the record key obtained at https://app.currents.dev
See https://github.com/currents-dev/currents-nx-example for example integration