forked from hellobloom/ssi-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
24 lines (23 loc) · 849 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const packagesToTransform = [
'@digitalbazaar/ed25519-signature-2020',
'@digitalbazaar/ed25519-verification-key-2020',
'@digitalbazaar/ed25519-signature-2020-context',
'base58-universal',
].join('|')
module.exports = {
testEnvironment: 'node',
transformIgnorePatterns: [
`[/\\\\]node_modules[/\\\\](?!(${packagesToTransform})).+\\.(js|jsx)$`,
],
moduleNameMapper: {
'@digitalbazaar/ed25519-signature-2020': '@digitalbazaar/ed25519-signature-2020/lib/main.js',
'@digitalbazaar/ed25519-verification-key-2020': '@digitalbazaar/ed25519-verification-key-2020/lib/main.js',
'@digitalbazaar/ed25519-signature-2020-context': '@digitalbazaar/ed25519-signature-2020-context/lib/main.js',
'base58-universal': 'base58-universal/main.js',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.test.json'
}
}
}