Skip to content

Instantly share code, notes, and snippets.

@prescottprue
Last active November 30, 2018 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prescottprue/b63ef6f6bc9f15b7301c366974054ff9 to your computer and use it in GitHub Desktop.
Save prescottprue/b63ef6f6bc9f15b7301c366974054ff9 to your computer and use it in GitHub Desktop.
Cypress plugin file for setting baseUrl to localhost or firebase url.
const cypressFirebasePlugin = require('cypress-firebase').plugin
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
// Return extended config (with settings from .firebaserc)
return cypressFirebasePlugin(config)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment