Complete the code to run Cypress tests inside a Docker container.
docker run -it -v $PWD:/e2e -w /e2e cypress/included:12.0.0 [1]
The command cypress run starts Cypress tests inside the Docker container.
Complete the Docker command to mount the current directory as a volume.
docker run -v [1]:/e2e -w /e2e cypress/included:12.0.0 cypress run
$PWD is the environment variable for the current directory, which is mounted inside the container.
Fix the error in the Docker command to run Cypress tests with the correct working directory.
docker run -v $PWD:/e2e -w [1] cypress/included:12.0.0 cypress run
The working directory inside the container should be /e2e where the project is mounted.
Fill both blanks to set environment variables and run Cypress tests in Docker.
docker run -e [1]=production -e [2]=true cypress/included:12.0.0 cypress run
NODE_ENV is commonly used to set the environment mode, and DEBUG enables debug logging.
Fill all three blanks to create a Docker command that runs Cypress tests with volume, working directory, and environment variable.
docker run -v [1]:/e2e -w [2] -e [3]=test cypress/included:12.0.0 cypress run
The current directory $PWD is mounted to /e2e, which is also the working directory. The environment variable NODE_ENV is set to test.