27 lines
519 B
TypeScript
27 lines
519 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
{
|
|
test: {
|
|
name: 'unit',
|
|
include: ['src/**/*.spec.ts'],
|
|
},
|
|
},
|
|
{
|
|
test: {
|
|
name: 'types',
|
|
include: ['src/**/*.type-spec.ts'],
|
|
typecheck: {
|
|
enabled: true,
|
|
only: true,
|
|
include: ['src/**/*.type-spec.ts'],
|
|
tsconfig: './tsconfig.json',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|