=test_update_homework_tests_and_work_log
Some checks failed
CI / build-deploy (push) Has been cancelled

This commit is contained in:
SpecialX
2026-03-19 13:16:49 +08:00
parent eb08c0ab68
commit 99f116cb64
70 changed files with 7470 additions and 20220 deletions

31
vitest.config.ts Normal file
View File

@@ -0,0 +1,31 @@
import path from "node:path"
import { defineConfig } from "vitest/config"
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
test: {
name: "integration",
environment: "node",
include: ["tests/integration/**/*.test.ts"],
setupFiles: ["tests/setup/integration.setup.ts"],
clearMocks: true,
restoreMocks: true,
mockReset: true,
coverage: {
provider: "v8",
enabled: false,
reporter: ["text", "html", "lcov"],
reportsDirectory: "./coverage/integration",
thresholds: {
lines: 80,
functions: 80,
branches: 75,
statements: 80,
},
},
},
})