forked from grandamenium/cortextos
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
24 lines (23 loc) · 764 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
24 lines (23 loc) · 764 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
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
resolve: {
alias: {
// Matches the dashboard's tsconfig path alias so tests under
// dashboard/src/**/__tests__ can import dashboard source via "@/…".
'@': path.resolve(__dirname, 'dashboard/src'),
// Dashboard tests need to resolve `next/server` and other Next deps
// from dashboard/node_modules, because root's package.json does not
// depend on Next.js.
'next/server': path.resolve(__dirname, 'dashboard/node_modules/next/server.js'),
},
},
test: {
globals: true,
testTimeout: 10000,
include: [
'tests/**/*.test.ts',
'dashboard/src/**/__tests__/**/*.test.ts',
],
},
});