forked from naftalimurgor/wbgl-bridge-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
55 lines (49 loc) · 1.12 KB
/
jest.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
import type { Config } from 'jest'
const config: Config = {
preset: 'ts-jest',
verbose: false,
testEnvironment: 'node',
cacheDirectory: '/tmp/jest_rs',
clearMocks: true,
collectCoverage: true,
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'node_modules/',
'src/__tests__/utils/',
'src/external/'
],
coverageProvider: 'v8',
// Jest extended matchers: https://github.com/jest-community/jest-extended
setupFilesAfterEnv: ['jest-extended/all', './setUpEnvVars'], roots: ['src/__tests__/'],
testPathIgnorePatterns: [
'node_modules/',
'src/abi/',
'src/external',
'src/__test__/utils/',
'src/chains.ts'
],
moduleFileExtensions: [
'js',
'mjs',
'cjs',
'jsx',
'ts',
'tsx',
'json',
'node',
],
testMatch: [
'**/__tests__/**/*.[t]s?(x)',
'**/?(*.)+(spec|test).[t]s?(x)'
],
testTimeout: 8 * 1000, // 8s
transformIgnorePatterns: [
'/node_modules/',
'\\.pnp\\.[^\\/]+$'
],
}
export default config