-
Notifications
You must be signed in to change notification settings - Fork 20
/
jest.config.ts
38 lines (36 loc) · 1.11 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
// jest.config.ts
import type { Config } from '@jest/types'
// Prepares 'config.projects' entry for a Jest TS project under '<rootDir>/packages-ts'
const projectConfig = (name: string) => ({
displayName: name,
testMatch: [`<rootDir>/packages-ts/${name}/**/*.test.ts`],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
globals: {
'ts-jest': {
tsconfig: `<rootDir>/packages-ts/${name}/tsconfig.json`,
},
},
})
const config: Config.InitialOptions = {
rootDir: '.',
preset: 'ts-jest',
testEnvironment: 'node',
verbose: true,
automock: true,
testPathIgnorePatterns: ['dist/', 'node_modules/'],
projects: [
projectConfig('starknet-gauntlet'),
projectConfig('starknet-gauntlet-argent'),
projectConfig('starknet-gauntlet-cli'),
projectConfig('starknet-gauntlet-example'),
projectConfig('starknet-gauntlet-multisig'),
projectConfig('starknet-gauntlet-ocr2'),
projectConfig('starknet-gauntlet-oz'),
projectConfig('starknet-gauntlet-token'),
projectConfig('starknet-gauntlet-emergency-protocol'),
projectConfig('starknet-gauntlet-ledger'),
],
}
export default config