-
Notifications
You must be signed in to change notification settings - Fork 178
/
vitest-web.config.ts
38 lines (37 loc) · 1.09 KB
/
vitest-web.config.ts
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
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import tsconfigPaths from 'vite-tsconfig-paths'
// eslint-disable-next-line import/no-default-export
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
include: [
'src/**/*.test.ts',
'src/**/*.test.tsx',
'react-app-rewired/**/*.test.ts',
'react-app-rewired/**/*.test.tsx',
],
// See vitest-side-effects.config.ts
exclude: [
'src/lib/poll/poll.test.ts',
'src/lib/cryptography/login.test.ts',
// Temporarily skipped until https://github.com/shapeshift/hdwallet/pull/666 goes in
'src/components/Modals/Send/hooks/useSendDetails/useSendDetails.test.tsx',
'src/components/Modals/Send/hooks/useFormSend/useFormSend.test.tsx',
'packages/**/*.test.ts',
'packages/**/*.test.tsx',
],
environment: 'happy-dom',
setupFiles: ['dotenv/config', 'src/setupVitest'],
clearMocks: true,
poolOptions: {
isolate: false,
threads: {
singleThread: true,
},
forks: {
isolate: false,
},
},
},
})