-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
49 lines (46 loc) · 1.14 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
import type { Config as JestConfig } from '@jest/types'
import Base from './jest-base.config'
const config: JestConfig.InitialOptions = {
...Base,
projects: ['<rootDir>'],
transform: { '^.+\\.tsx?$': 'ts-jest' },
globals: {
'ts-jest': {
tsconfig: './tsconfig.test.json'
}
},
testMatch: ['**/__tests__/?(*.)+(spec|test).ts'],
collectCoverageFrom: ['packages/**'],
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/coverage/', '/drizzle-fetch/', 'packages/.*/index.ts'],
modulePathIgnorePatterns: [
'dist',
'coverage',
'examples/*',
'benchmarks/*',
'./test/*',
'./deno/*',
'scripts/*',
'packages/.*/dist',
'packages/.*/coverage',
'packages/.*/out',
'packages/.*/tsconfig.*',
'packages/.*/jest.config*',
'packages/.*/package-*.json',
'internal/*'
],
testPathIgnorePatterns: [
'/node_modules/',
'/benchmarks/',
'/examples/',
'/dist/',
'/out/',
'/coverage/',
'internal/*',
'scripts/*',
'packages/.*/jest.config*',
'packages/.*/index.ts',
'packages/.*/package-*.json',
'packages/drizzle-fetch'
]
}
export default config