-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.integration.config.ts
More file actions
30 lines (29 loc) · 1.08 KB
/
Copy pathvitest.integration.config.ts
File metadata and controls
30 lines (29 loc) · 1.08 KB
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
26
27
28
29
30
import { defineConfig, mergeConfig } from 'vitest/config';
import path from 'path';
import baseConfig from './vitest.config.js';
export default mergeConfig(
baseConfig,
defineConfig({
resolve: {
alias: {
'@': path.resolve(import.meta.dirname, 'web/src'),
'@open-walnut/core': path.resolve(import.meta.dirname, 'src/core/types.ts'),
},
},
test: {
include: [
'tests/commands/**/*.test.ts',
'tests/integrations/**/*.test.ts',
'tests/web/**/*.test.ts',
'tests/session-server/**/*.test.ts',
],
// notes-roundtrip drives the FRONTEND editor serializer; diff-view drives
// the FRONTEND diff pipeline (react-diff-view/diff). Both have deps in
// web/node_modules, so they run under their own web-rooted configs
// (vitest.notes-roundtrip.config.ts / vitest.diff-view.config.ts) — never
// the node-env integration tier where those deps don't resolve.
exclude: ['**/*.live.test.ts', 'tests/web/notes-roundtrip/**', 'tests/web/diff-view/**'],
testTimeout: 60_000,
},
}),
);