-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
25 lines (22 loc) · 914 Bytes
/
vitest.config.ts
File metadata and controls
25 lines (22 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
const rootDir = fileURLToPath(new URL('.', import.meta.url));
export default defineConfig({
resolve: {
alias: {
'tiger-openapi': resolve(rootDir, 'packages/client/src/index.ts'),
'tiger-openapi/browser': resolve(rootDir, 'packages/client/src/browser.ts'),
'tiger-openapi-shared': resolve(rootDir, 'packages/shared/src/index.ts'),
'tiger-openapi-http': resolve(rootDir, 'packages/http/src/index.ts'),
'tiger-openapi-pb': resolve(rootDir, 'packages/pb/src/index.ts'),
'tiger-openapi-stream': resolve(rootDir, 'packages/stream/src/index.ts'),
'tiger-openapi-core': resolve(rootDir, 'packages/core/src/index.ts'),
},
},
test: {
globals: true,
environment: 'node',
include: ['packages/**/*.{test,spec}.{ts,tsx}'],
},
});