feat: simplify testing structure into api and e2e categories

This commit is contained in:
bipproduction
2026-02-08 11:01:55 +08:00
parent 4640b72ca6
commit 0f71798389
18 changed files with 1006 additions and 62 deletions

View File

@@ -12,8 +12,9 @@
"check": "biome check --write .",
"format": "biome format --write .",
"gen:api": "bun scripts/generate-schema.ts && bun x openapi-typescript generated/schema.json -o generated/api.ts",
"test": "vitest run",
"test:ui": "vitest --ui",
"test": "bun test __tests__/api",
"test:ui": "bun test --ui __tests__/api",
"test:e2e": "bun run build && playwright test",
"build": "bun build ./src/index.html --outdir=dist --sourcemap --target=browser --minify --define:process.env.NODE_ENV='\"production\"' --env='VITE_*'",
"start": "NODE_ENV=production bun src/index.ts"
},
@@ -23,6 +24,7 @@
"@elysiajs/swagger": "^1.3.1",
"@mantine/core": "^8.3.14",
"@mantine/dates": "^8.3.13",
"@mantine/form": "^8.3.14",
"@mantine/hooks": "^8.3.14",
"@mantine/modals": "^8.3.14",
"@prisma/adapter-pg": "^7.3.0",
@@ -43,6 +45,7 @@
"@babel/core": "^7.29.0",
"@babel/plugin-transform-react-jsx-source": "^7.27.1",
"@biomejs/biome": "2.3.14",
"@playwright/test": "^1.58.2",
"@react-dev-inspector/vite-plugin": "^2.0.1",
"@tanstack/react-router-devtools": "^1.158.1",
"@tanstack/router-cli": "^1.157.16",
@@ -52,7 +55,6 @@
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitejs/plugin-react": "^5.1.3",
"@vitest/ui": "^4.0.18",
"concurrently": "^9.2.1",
"fast-glob": "^3.3.3",
"openapi-typescript": "^7.10.1",
@@ -61,7 +63,6 @@
"postcss-simple-vars": "^7.0.1",
"prisma": "^6.19.2",
"react-dev-inspector": "^2.0.1",
"vite": "^7.3.1",
"vitest": "^4.0.18"
"vite": "^7.3.1"
}
}