Skip to content

Instantly share code, notes, and snippets.

@tiagogomes772
Last active January 31, 2020 13:29
Show Gist options
  • Save tiagogomes772/bbe264fc075177935b2d12efa548e5a4 to your computer and use it in GitHub Desktop.
Save tiagogomes772/bbe264fc075177935b2d12efa548e5a4 to your computer and use it in GitHub Desktop.
1 - Go to the project and edit the Dockerfile inside the cypress folder.
2 - Remove last command to run tests and make sure the last command is the build
3 - Got to the root of the project and run: docker build . -f ./cypress/Dockerfile -t meta-front-end:dev
4 - To run the cypress tests run this command: docker run -v ${PWD}/cypress:/app/cypress --rm meta-front-end:dev npm run test-prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment