-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathvitest.config.ts
More file actions
45 lines (44 loc) · 1.3 KB
/
Copy pathvitest.config.ts
File metadata and controls
45 lines (44 loc) · 1.3 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import graphql from '@rollup/plugin-graphql';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import {defineConfig} from 'vitest/config';
export default defineConfig({
plugins: [
react(),
tsconfigPaths({
projects: [
'./tsconfig.json',
'./extensions/buyer-subscriptions/tsconfig.json',
'./extensions/admin-subs-action/tsconfig.json',
'./extensions/thank-you-page/tsconfig.json',
],
}),
graphql(),
],
server: {
watch: {
ignored: ['.*\\/node_modules\\/.*', '.*\\/build\\/.*'],
},
},
test: {
globals: true,
environment: 'happy-dom',
// By default vitest v2 uses 'forks' but that fails in CI, possibly because of how our VMs are set up
pool: 'threads',
setupFiles: [
'./test/setup-test-env.ts',
'./test/setup-i18n.ts',
'./test/setup-graphql-matchers.ts',
'./test/setup-app-bridge.tsx',
'./test/setup-address-mocks.tsx',
],
include: [
'./app/**/*.test.[jt]s?(x)',
'./extensions/admin-subs-action/**/*.test.[jt]s?(x)',
'./config/**/*.test.[jt]s?(x)',
'./extensions/buyer-subscriptions/**/*.test.[jt]s?(x)',
'./extensions/thank-you-page/**/*.test.[jt]s?(x)',
],
exclude: ['./extensions/**/node_modules/**'],
},
});