-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
49 lines (49 loc) · 1.73 KB
/
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
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
module.exports = {
preset: "ts-jest",
testEnvironment: 'node',
testTimeout: 30000,
maxConcurrency: 2,
testMatch: ["<rootDir>/packages/**/!(*.e2e).test.[j]s"],
coverageThreshold: {
global: {
branches: 10,
functions: 10,
lines: 10,
statements: 10,
},
},
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx|cjs)$': [
'babel-jest',
{
configFile: require.resolve('./babel.config.js'),
},
],
},
resetMocks: false,
setupFilesAfterEnv: ['<rootDir>/setup-tests.js'],
globalTeardown: './scripts/test-teardown-globals.js',
setupFiles: ['jest-localstorage-mock'],
moduleNameMapper: {
'@digitalbazaar/x25519-key-agreement-key-2020':
'@digitalbazaar/x25519-key-agreement-key-2020/lib/X25519KeyAgreementKey2020',
'@digitalbazaar/ed25519-verification-key-2020':
'@digitalbazaar/ed25519-verification-key-2020/lib/Ed25519VerificationKey2020',
'@digitalbazaar/ed25519-verification-key-2018':
'@digitalbazaar/ed25519-verification-key-2018/src/Ed25519VerificationKey2018',
'@digitalbazaar/minimal-cipher': '@digitalbazaar/minimal-cipher/Cipher',
'@digitalbazaar/did-method-key': '@digitalbazaar/did-method-key/lib/main',
'@docknetwork/wallet-sdk-wasm/lib/(.*)':
'@docknetwork/wallet-sdk-wasm/src/$1',
'@docknetwork/wallet-sdk-data-store/lib/(.*)':
'@docknetwork/wallet-sdk-data-store/src/$1',
'@docknetwork/wallet-sdk-data-store-typeorm/lib/(.*)':
'@docknetwork/wallet-sdk-data-store-typeorm/src/$1',
'@docknetwork/wallet-sdk-data-store/lib':
'@docknetwork/wallet-sdk-data-store/src',
},
transformIgnorePatterns: [
'/node_modules/(?!@polkadot|@babel|@docknetwork|@digitalbazaar|base58-universal)',
],
};