-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathvitest.config.mts
More file actions
41 lines (38 loc) · 1.17 KB
/
vitest.config.mts
File metadata and controls
41 lines (38 loc) · 1.17 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
import { defineConfig } from 'vitest/config'
import { resolve } from 'node:path'
import dotenv from 'dotenv'
import swc from 'unplugin-swc'
dotenv.config()
dotenv.config({ path: resolve(__dirname, 'KNOWN_GOOD_BLOCK_NUMBERS_KUSAMA.env') })
dotenv.config({ path: resolve(__dirname, 'KNOWN_GOOD_BLOCK_NUMBERS_POLKADOT.env') })
dotenv.config({ path: resolve(__dirname, 'KNOWN_GOOD_BLOCK_NUMBERS_WESTEND.env') })
if (process.env.LOG_LEVEL === undefined) {
process.env.LOG_LEVEL = 'error'
}
export default defineConfig({
test: {
hookTimeout: 300_000,
testTimeout: 300_000,
pool: 'forks',
passWithNoTests: true,
retry: 1,
reporters: process.env.GITHUB_ACTIONS ? ['verbose', 'github-actions'] : ['default'],
// bifrostKusama is excluded: only Liebi public endpoints are configured,
// and the only currently-reachable host prunes the state CI needs.
exclude: [
'**/node_modules/**',
'**/.git/**',
'packages/kusama/src/bifrostKusama.*.test.ts',
'packages/kusama/src/karura.bifrostKusama.xcm.test.ts',
],
},
build: {
outDir: '../../dist',
},
resolve: {
tsconfigPaths: true,
},
plugins: [swc.vite({ tsconfigFile: true })],
oxc: false,
clearScreen: false,
})