more unit testing
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m13s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m13s
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
"start": "tsx --env-file .env server.ts",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"clean": "rimraf coverage .coverage",
|
||||
"test:coverage": "npm run clean && npm run test && npm run test:integration && nyc merge .coverage && nyc report --reporter=html --reporter=text",
|
||||
"clean": "rimraf coverage .coverage",
|
||||
"test:coverage": "npm run clean && npm run test && npm run test:integration && nyc merge .coverage .coverage/coverage.json && nyc report --reporter=html --reporter=text",
|
||||
"test": "vitest run --coverage",
|
||||
"test:integration": "vitest run --coverage -c vitest.config.integration.ts",
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
|
||||
@@ -40,8 +40,8 @@ export default defineConfig({
|
||||
],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
// Add 'json' for merging and output to a temporary directory
|
||||
reporter: ['text', 'html', 'json'],
|
||||
// We remove 'text' here. The final text report will be generated by `nyc` after merging.
|
||||
reporter: ['html', 'json'],
|
||||
reportsDirectory: './.coverage/unit',
|
||||
clean: true,
|
||||
include: ['src/**/*.{ts,tsx}'],
|
||||
|
||||
@@ -18,8 +18,8 @@ export default defineConfig({
|
||||
fileParallelism: false,
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
// Add 'json' for merging and output to a temporary directory
|
||||
reporter: ['text', 'html', 'json'],
|
||||
// We remove 'text' here. The final text report will be generated by `nyc` after merging.
|
||||
reporter: ['html', 'json'],
|
||||
reportsDirectory: './.coverage/integration',
|
||||
clean: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user