mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 21:47:38 +00:00

36 lines
783 B
TypeScript
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,
|
|
},
|
|
});
|