test(web-app): add cypress for unit test
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --env-mode",
|
||||
"build": "vue-cli-service build"
|
||||
"build": "vue-cli-service build",
|
||||
"cypress:open": "cypress open",
|
||||
"cypress:run": "cypress run",
|
||||
"test:unit": "cypress run --config-file cypress.unit.js --spec 'tests/unit/*.spec.ts'",
|
||||
"test:e2e": "cypress run --config-file cypress.unit.js --spec 'tests/e2e/*.spec.ts'",
|
||||
"test": "npm run test:unit && npm run test:e2e"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.9.0",
|
||||
@@ -17,8 +22,11 @@
|
||||
"vue-router": "^4.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/vue": "^6.0.2",
|
||||
"@types/jest": "^29.5.14",
|
||||
"@vue/cli-plugin-typescript": "~5.0.0",
|
||||
"@vue/cli-service": "~5.0.0",
|
||||
"cypress": "^14.4.1",
|
||||
"typescript": "~4.5.5"
|
||||
},
|
||||
"browserslist": [
|
||||
|
||||
Reference in New Issue
Block a user