Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

feat: add environment variable support #12

Merged
merged 3 commits into from Nov 14, 2019
Merged

Conversation

bahmutov
Copy link
Contributor

// run tests with 
// CYPRESS_ENVIRONMENT=staging npx cypress run
import {onlyOn} from '@cypress/skip-test'
const stubServer = () => {
  cy.server()
  cy.route('/api/me', 'fx:me.json')
  cy.route('/api/permissions', 'fx:permissions.json')
  // Lots of fixtures ...
}
it('works', () => {
  onlyOn('staging', stubServer)
  ...
})

@bahmutov bahmutov changed the title Add environment variable support feat: add environment variable support Nov 14, 2019
@bahmutov bahmutov merged commit f62f1fa into master Nov 14, 2019
@bahmutov
Copy link
Contributor Author

🎉 This PR is included in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add environment variable
1 participant