Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run Cypress tests on live netlify URL
{
"scripts": {
"installCLI": "npm install netlify-cli",
"build": "react-scripts build && npm run deployTestSite",
"deployTestSite": "netlify deploy --json | jq {siteURL} | cypress test {siteURL}",
"test": "react-scripts test",
"deploy": "netlify deploy --dir build --prod"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment