forked from base-org/op-viem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
36 lines (35 loc) · 1.07 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
export const poolId = Number(process.env.VITEST_POOL_ID ?? 1)
export const localHttpUrl = `http://127.0.0.1:8545/${poolId}`
export const localWsUrl = `ws://127.0.0.1:8545/${poolId}`
export const localRollupHttpUrl = `http://127.0.0.1:8555/${poolId}`
export const localRollupWsUrl = `ws://127.0.0.1:8555/${poolId}`
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
benchmark: {
outputFile: './bench/report.json',
reporters: process.env.CI ? ['json'] : ['verbose'],
},
// if you are using the default rpc you will need these to not get rate limited
// maxConcurrency: 1,
// maxThreads: 1,
// minThreads: 1,
coverage: {
lines: 95,
statements: 95,
functions: 90,
branches: 90,
thresholdAutoUpdate: true,
reporter: ['text', 'json-summary', 'json'],
exclude: [
'**/errors/utils.ts',
'**/dist/**',
'**/*.test.ts',
'**/_test/**',
],
},
environment: 'node',
globalSetup: ['./src/_test/globalSetup.ts'],
testTimeout: 100_000,
},
})