Cypress is executed in the same run loop as your application
easy cross browser
create Docker file
# dependencies will be installed only if the package files change
COPY package.json .
COPY package-lock.json .
RUN npm install
# by setting CI environment variable we switch the Cypress install messages
# to small "started / finished" and avoid 1000s of lines of progress messages
RUN npm ci
# verify that Cypress has been installed correctly.
# running this command separately from "cypress run" will also cache its result
# to avoid verifying again when running the tests
# RUN npm cypress verify
COPY cypress cypress
COPY cypress.json .
CMD [ "npm", "run", "start" ]