wire cypress for frontend

This commit is contained in:
Yisroel Baum 2026-05-16 21:42:28 +03:00
parent 4cfe2bd4a5
commit 821ff72b00
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 2651 additions and 3 deletions

View 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())
},
},
})

View file

@ -0,0 +1,3 @@
// Loaded automatically before every spec file in cypress/e2e/.
// Intentionally minimal - add shared commands here when needed.
export {}

File diff suppressed because it is too large Load diff

View file

@ -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",