-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvitest.config.ts
More file actions
22 lines (21 loc) · 883 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
22 lines (21 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
include: ['dev/test/**/*.test.ts'],
// The Docker/wp-env lifecycle is a separately invoked acceptance command.
// `npm test` stays a fast repository check even on machines without Docker.
exclude: [
'dev/test/proof-real-wordpress.test.ts',
'dev/test/proof-query-wordpress.test.ts',
'dev/test/proof-tabs-wordpress.test.ts',
'dev/test/proof-gutenberg-compat.test.ts',
'dev/test/plugin.consumer.test.ts',
'dev/test/proof-native-style-adapter-builder.test.ts',
],
// Each file boots a full headless Gutenberg runtime. Parallel boots contend heavily enough
// to cross the timeout together on developer machines, so serialize files for a stable gate.
fileParallelism: false,
testTimeout: 30000,
},
});