Open History to see the last commit
1import { defineConfig } from 'vitest/config'
2import { resolve } from 'path'
3import { fileURLToPath } from 'url'
4
5const __dirname = fileURLToPath(new URL('.', import.meta.url))
6
7export default defineConfig({
8 test: {
9 globals: true,
10 environment: 'jsdom',
11 setupFiles: ['./tests/setup.ts'],
12 include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
13 coverage: {
14 provider: 'v8',
15 reporter: ['text', 'json', 'html', 'lcov'],
16 exclude: [
17 'node_modules/',
18 'dist/',
19 'tests/',
20 '**/*.test.ts',
21 '**/*.test.tsx',
22 '**/*.config.ts',
23 '**/types.ts',
24 ],
25 include: ['src/**/*.ts'],
26 },
27 },
28 resolve: {
29 alias: {
30 '@tanstack/ai-event-client': resolve(
31 __dirname,
32 '../ai-event-client/src/index.ts',
33 ),
34 },
35 },
36})