twenty/packages/twenty-sdk/vitest.unit.config.ts

36 lines
783 B
TypeScript

import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
tsconfigPaths({
root: __dirname,
ignoreConfigErrors: true,
}),
],
test: {
name: 'twenty-sdk-unit',
environment: 'node',
include: [
'src/**/__tests__/**/*.{test,spec}.{ts,tsx}',
'src/**/*.{test,spec}.{ts,tsx}',
],
exclude: [
'**/node_modules/**',
'**/.git/**',
'**/__e2e__/**',
'**/__integration__/**',
],
coverage: {
provider: 'v8',
include: ['src/**/*.{ts,tsx}'],
exclude: ['src/**/*.d.ts', 'src/cli/cli.ts'],
thresholds: {
statements: 1,
lines: 1,
functions: 1,
},
},
globals: true,
},
});