testing admin routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m28s

This commit is contained in:
2025-11-28 16:34:34 -08:00
parent d915e3bd3e
commit c244844f2b
2 changed files with 5 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
"build": "vite build",
"preview": "vite preview",
"test": "node --max-old-space-size=8192 ./node_modules/vitest/vitest.mjs run",
"test:coverage": "npm run clean && npm run test:unit -- --coverage --reporter=verbose --reporter=hanging-process --testTimeout=20000 && npm run test:integration -- --coverage --reporter=verbose --reporter=hanging-process --testTimeout=20000",
"test:coverage": "npm run clean && npm run test:unit -- --coverage --includeTaskLocation --testTimeout=20000 || npm run test:integration -- --coverage --includeTaskLocation --testTimeout=20000",
"test:unit": "node --max-old-space-size=8192 ./node_modules/vitest/vitest.mjs run -c vite.config.ts",
"test:integration": "node --max-old-space-size=8192 ./node_modules/vitest/vitest.mjs run -c vitest.config.integration.ts",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",

View File

@@ -51,8 +51,10 @@ export default defineConfig({
coverage: {
provider: 'v8',
// We remove 'text' here. The final text report will be generated by `nyc` after merging.
reporter: ['html', 'json'],
reportsDirectory: './.coverage/unit',
reporter: ['verbose', 'html', 'json', 'tree'],
// hanging-process reporter helps identify tests that do not exit properly - comes at a high cost tho
//reporter: ['verbose', 'html', 'json', 'hanging-process'],
reportsDirectory: './.coverage/unit',
clean: true,
reportOnFailure: true, // This ensures the report generates even if tests fail
include: ['src/**/*.{ts,tsx}'],