Skip to content
Snippets Groups Projects
Commit 7d9486ec authored by Sondre Malerud's avatar Sondre Malerud :coffee:
Browse files

Merge branch 'e2e' into 'main'

E2e testing i CI

See merge request !3
parents 889a924c da562f97
No related branches found
No related tags found
1 merge request!3E2e testing i CI
Pipeline #218636 passed
image: node:latest
image: cypress/base:latest
stages:
- build
......@@ -24,3 +24,8 @@ unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- npm run test:unit
e2e-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- npm run test:e2e:dev
......@@ -8,7 +8,7 @@
"preview": "vite preview",
"test:unit": "vitest --environment jsdom --root src/",
"test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'",
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'"
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' :4173 'cypress run --e2e'"
},
"dependencies": {
"pinia": "^2.0.28",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment