Jun 17, 2021
I don’t see why this would not work running via Cypress Module API. There is an env object in the API for a reason.
// staging-tests.jsconst cypress = require('cypress')
cypress.run({
browser: 'chrome',
env: {
tags: 'staging',
},
})
Then run via:
node staging-tests.js
With all of that said, have you tried it? Or just making an assumption?