Last active
August 13, 2020 19:19
-
-
Save DavidWells/b62dcdaaaaaa8824410267e3d5d5de75 to your computer and use it in GitHub Desktop.
Run Cypress tests on live netlify URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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