test: stabilize vitest config and integration test environment
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
"lint": "eslint 'src/**/*.ts'",
|
"lint": "eslint 'src/**/*.ts'",
|
||||||
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
||||||
"format": "prettier --write 'src/**/*.ts'",
|
"format": "prettier --write 'src/**/*.ts'",
|
||||||
"test:unit": "vitest run",
|
"test:unit": "vitest run src/**/*.spec.ts --exclude src/*.integration.spec.ts --exclude dist/**",
|
||||||
"test:integration": "vitest run src/*.integration.spec.ts"
|
"test:integration": "vitest run src/*.integration.spec.ts --exclude dist/**"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nestjs/common": "^10.4.8",
|
"@nestjs/common": "^10.4.8",
|
||||||
|
|||||||
8
Fabric.Backend.Center/vitest.config.ts
Normal file
8
Fabric.Backend.Center/vitest.config.ts
Normal 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/**'],
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -10,8 +10,8 @@
|
|||||||
"lint": "eslint 'src/**/*.ts'",
|
"lint": "eslint 'src/**/*.ts'",
|
||||||
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
||||||
"format": "prettier --write 'src/**/*.ts'",
|
"format": "prettier --write 'src/**/*.ts'",
|
||||||
"test:unit": "vitest run",
|
"test:unit": "vitest run src/**/*.spec.ts --exclude src/*.integration.spec.ts --exclude dist/**",
|
||||||
"test:integration": "vitest run src/*.integration.spec.ts"
|
"test:integration": "vitest run src/*.integration.spec.ts --exclude dist/**"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nestjs/common": "^10.4.8",
|
"@nestjs/common": "^10.4.8",
|
||||||
|
|||||||
8
Fabric.Backend.Guild/vitest.config.ts
Normal file
8
Fabric.Backend.Guild/vitest.config.ts
Normal 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/**'],
|
||||||
|
},
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user