wire cypress for frontend
This commit is contained in:
parent
4cfe2bd4a5
commit
821ff72b00
4 changed files with 2651 additions and 3 deletions
16
frontend/rabbi_gerzi/cypress.config.mjs
Normal file
16
frontend/rabbi_gerzi/cypress.config.mjs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { defineConfig } from 'cypress'
|
||||
import createBundler from '@bahmutov/cypress-esbuild-preprocessor'
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
baseUrl: 'http://localhost:5173',
|
||||
specPattern: 'cypress/e2e/**/*.cy.ts',
|
||||
supportFile: 'cypress/support/e2e.ts',
|
||||
fixturesFolder: false,
|
||||
video: false,
|
||||
screenshotOnRunFailure: false,
|
||||
setupNodeEvents(onEvent) {
|
||||
onEvent('file:preprocessor', createBundler())
|
||||
},
|
||||
},
|
||||
})
|
||||
3
frontend/rabbi_gerzi/cypress/support/e2e.ts
Normal file
3
frontend/rabbi_gerzi/cypress/support/e2e.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// Loaded automatically before every spec file in cypress/e2e/.
|
||||
// Intentionally minimal - add shared commands here when needed.
|
||||
export {}
|
||||
2628
frontend/rabbi_gerzi/package-lock.json
generated
2628
frontend/rabbi_gerzi/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -12,7 +12,9 @@
|
|||
"lint": "run-s lint:*",
|
||||
"lint:oxlint": "oxlint . --fix",
|
||||
"lint:eslint": "eslint . --fix --cache",
|
||||
"format": "oxfmt src/"
|
||||
"format": "oxfmt src/",
|
||||
"test:e2e": "cypress run",
|
||||
"test:e2e:open": "cypress open"
|
||||
},
|
||||
"dependencies": {
|
||||
"pinia": "^3.0.4",
|
||||
|
|
@ -20,12 +22,15 @@
|
|||
"vue-router": "^5.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.8",
|
||||
"@tsconfig/node24": "^24.0.4",
|
||||
"@types/node": "^24.12.2",
|
||||
"@vitejs/plugin-vue": "^6.0.6",
|
||||
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
||||
"@vue/eslint-config-typescript": "^14.7.0",
|
||||
"@vue/tsconfig": "^0.9.1",
|
||||
"cypress": "^14.5.4",
|
||||
"esbuild": "^0.28.0",
|
||||
"eslint": "^10.2.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-oxlint": "~1.60.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue