-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (28 loc) · 883 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
30 lines (28 loc) · 883 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
26
27
28
29
30
import process from 'node:process'
import { defineConfig } from 'vitest/config'
const runOriginal = process.env.RUN_ORIGINAL === '1'
export default defineConfig({
test: {
// Include tests from this project and the original markdown-it project
include: [
'test/**/*.{ts,js,mts,mjs}',
],
environment: 'node',
testTimeout: 60000,
hookTimeout: 60000,
globals: true,
reporters: ['default'],
exclude: [
// keep Vitest from treating helper/worker files as tests
'**/node_modules/**',
'**/.git/**',
'test/original/pathological_worker.js',
'test/original/pathological_worker_thread.mjs',
'test/original/pathological.json',
'test/original/cjs.js',
'test/types/**',
// Skip original markdown-it suite unless explicitly enabled
...(runOriginal ? [] : ['test/original/**']),
],
},
})