27 lines
662 B
TypeScript
27 lines
662 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-integration',
|
|
environment: 'node',
|
|
include: ['src/**/__integration__/**/*.{test,spec}.{ts,tsx}'],
|
|
exclude: ['**/node_modules/**', '**/.git/**'],
|
|
globals: true,
|
|
diff: {
|
|
truncateThreshold: 0,
|
|
},
|
|
fileParallelism: false,
|
|
setupFiles: [
|
|
'src/cli/__tests__/constants/setupTest.ts',
|
|
'src/cli/__tests__/integration/utils/setup-app-dev-mocks.ts',
|
|
],
|
|
},
|
|
});
|