-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.adapters.config.ts
More file actions
25 lines (24 loc) · 904 Bytes
/
Copy pathvitest.adapters.config.ts
File metadata and controls
25 lines (24 loc) · 904 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 { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
// GATED adapter suite (Constitution II / research §1): exercises the real
// taglib-wasm tagger (and, later, an optional live OpenAI provider) in plain
// Node. Kept OUT of the default suite (vitest.config.ts globs only unit +
// integration) so `pnpm test` stays network-/binary-free; run explicitly with
// `pnpm test:adapters`. The WASM tagger runs in-process — no system binary.
export default defineConfig({
test: {
environment: 'node',
include: ['tests/adapters/**/*.test.ts'],
setupFiles: ['./tests/setup.ts'],
// taglib-wasm loads its WASM module once per file; give it generous headroom.
testTimeout: 30_000,
},
resolve: {
alias: [
{
find: /^#core$/,
replacement: fileURLToPath(new URL('./src/core/index.ts', import.meta.url)),
},
],
},
})