Override an app env var for cypress test launch with vue-cli-service

It’s possible to override an application var env during a cypress test

ie : in my .env.test i have a VUE_APP_ACTIVE = true.

I launch test like this “vue-cli-service test:e2e --mode test --env test” and in one test i want to change for VUE_APP_ACTIVE = false.

Tests are write with cypress.

I not know if it’s possible (change app env var on the fly), and if it’s i don’t kown how.


you may want to take a look at this package: https://github.com/toddbluhm/env-cmd