-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
38 lines (37 loc) · 1.31 KB
/
vitest.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
import { fileURLToPath } from 'node:url'
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
import viteConfig from './vite.config'
export default mergeConfig(
viteConfig,
defineConfig({
test: {
coverage: {
provider: 'istanbul',
include: ['**/packages/**/src/**', '**/packages/networks/**/src/**'],
exclude: [
'**/types/**',
'**/browser/**',
'**/index.ts/**',
'**/boilerplate/**',
'**/networks/**/src/services/TransactionListener.ts'
]
},
watch: false,
maxConcurrency: 1,
sequence: {
shuffle: false,
concurrent: false
},
testTimeout: 180000,
environment: 'node',
exclude: [...configDefaults.exclude, 'e2e/*', '**/boilerplate/**'],
root: fileURLToPath(new URL('./', import.meta.url)),
setupFiles: [
'./packages/networks/evm-chains/tests/setup.ts',
'./packages/networks/bitcoin/tests/setup.ts',
'./packages/networks/solana/tests/setup.ts',
'./packages/networks/tron/tests/setup.ts'
]
}
})
)