-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathjest.config.js
More file actions
54 lines (53 loc) · 2.81 KB
/
jest.config.js
File metadata and controls
54 lines (53 loc) · 2.81 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
42
43
44
45
46
47
48
49
50
51
52
53
54
const config = {
transform: {
'^.+\\.ts$': [
'ts-jest',
{
useESM: true,
tsconfig: './tsconfig.json',
}
]
},
extensionsToTreatAsEsm: ['.ts'],
testEnvironment: 'node',
moduleFileExtensions: ['ts', 'js', 'mjs'],
moduleNameMapper: {
'^@mdip/cipher/node$': '<rootDir>/packages/cipher/src/cipher-node.ts',
'^@mdip/cipher/types': '<rootDir>/packages/cipher/src/types.ts',
'^@mdip/common/env$': '<rootDir>/packages/common/src/env.ts',
'^@mdip/common/errors$': '<rootDir>/packages/common/src/errors.ts',
'^@mdip/common/utils$': '<rootDir>/packages/common/src/utils.ts',
'^@mdip/common/logger': '<rootDir>/packages/common/src/logger.ts',
'^@mdip/gatekeeper$': '<rootDir>/packages/gatekeeper/src/gatekeeper.ts',
'^@mdip/gatekeeper/types$': '<rootDir>/packages/gatekeeper/src/types.ts',
'^@mdip/gatekeeper/client$': '<rootDir>/packages/gatekeeper/src/gatekeeper-client.ts',
'^@mdip/gatekeeper/db/(.*)$': '<rootDir>/packages/gatekeeper/src/db/$1',
'^@mdip/ipfs/helia$': '<rootDir>/packages/ipfs/src/helia-client.ts',
'^@mdip/ipfs/utils$': '<rootDir>/packages/ipfs/src/utils.ts',
'^@mdip/keymaster/search$': '<rootDir>/packages/keymaster/src/search-client.ts',
'^@mdip/keymaster$': '<rootDir>/packages/keymaster/src/keymaster.ts',
'^@mdip/keymaster/client$': '<rootDir>/packages/keymaster/src/keymaster-client.ts',
'^@mdip/keymaster/wallet/(.*)$': '<rootDir>/packages/keymaster/src/db/$1',
'^@mdip/keymaster/encryption': '<rootDir>/packages/keymaster/src/encryption.ts',
'^@mdip/inscription': '<rootDir>/packages/inscription/src/inscription.ts',
'^pino$': '<rootDir>/tests/common/pino.mock.ts',
'^\\.\\/typeGuards\\.js$': '<rootDir>/packages/keymaster/src/db/typeGuards.ts',
'^\\.\\/db\\/typeGuards\\.js$': '<rootDir>/packages/keymaster/src/db/typeGuards.ts',
'^\\.\\/sync-mapping\\.js$': '<rootDir>/services/mediators/hyperswarm/src/sync-mapping.ts',
'^\\.\\/sync-persistence\\.js$': '<rootDir>/services/mediators/hyperswarm/src/sync-persistence.ts',
'^\\.\\/abstract-json\\.js$': '<rootDir>/packages/gatekeeper/src/db/abstract-json.ts',
'^\\.\\/published-credentials\\.js$': '<rootDir>/services/search-server/src/published-credentials.ts',
'^\\.\\/cipher-base\\.js$': '<rootDir>/packages/cipher/src/cipher-base.ts',
'^\\.\\/encryption\\.js$': '<rootDir>/packages/keymaster/src/encryption.ts',
},
testPathIgnorePatterns: [
"/node_modules/",
"/kc-app/",
"/client/"
],
coveragePathIgnorePatterns: [
"/node_modules/",
"/services/mediators/hyperswarm/src/negentropy/Negentropy\\.cjs$",
]
};
export default config;