test: stabilize vitest config and integration test environment
Some checks failed
backend-ci / verify (Fabric.Backend.Center) (push) Has been cancelled
backend-ci / verify (Fabric.Backend.Guild) (push) Has been cancelled

This commit is contained in:
nav
2026-05-12 12:09:49 +00:00
parent 8534c530c8
commit 5b28ad52bb
4 changed files with 20 additions and 4 deletions

View File

@@ -10,8 +10,8 @@
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint 'src/**/*.ts' --fix",
"format": "prettier --write 'src/**/*.ts'",
"test:unit": "vitest run",
"test:integration": "vitest run src/*.integration.spec.ts"
"test:unit": "vitest run src/**/*.spec.ts --exclude src/*.integration.spec.ts --exclude dist/**",
"test:integration": "vitest run src/*.integration.spec.ts --exclude dist/**"
},
"dependencies": {
"@nestjs/common": "^10.4.8",

View File

@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['src/**/*.spec.ts', 'src/*.integration.spec.ts'],
exclude: ['dist/**', 'node_modules/**'],
},
});

View File

@@ -10,8 +10,8 @@
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint 'src/**/*.ts' --fix",
"format": "prettier --write 'src/**/*.ts'",
"test:unit": "vitest run",
"test:integration": "vitest run src/*.integration.spec.ts"
"test:unit": "vitest run src/**/*.spec.ts --exclude src/*.integration.spec.ts --exclude dist/**",
"test:integration": "vitest run src/*.integration.spec.ts --exclude dist/**"
},
"dependencies": {
"@nestjs/common": "^10.4.8",

View File

@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['src/**/*.spec.ts', 'src/*.integration.spec.ts'],
exclude: ['dist/**', 'node_modules/**'],
},
});