-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathjest.config.js
43 lines (43 loc) · 1.6 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
export default {
bail: true,
moduleNameMapper: {
"^@docknetwork/credential-sdk/(.*)$":
"<rootDir>/../credential-sdk/dist/esm/$1",
"^@docknetwork/dock-blockchain-api/(.*)$":
"<rootDir>/../dock-blockchain-api/dist/esm/$1",
"^@docknetwork/cheqd-blockchain-api/(.*)$":
"<rootDir>/../cheqd-blockchain-api/dist/esm/$1",
"^@docknetwork/dock-blockchain-modules/(.*)$":
"<rootDir>/../dock-blockchain-modules/dist/esm/$1",
"^@docknetwork/dock-blockchain-api$":
"<rootDir>/../dock-blockchain-api/dist/esm/index.js",
"^@docknetwork/cheqd-blockchain-api$":
"<rootDir>/../cheqd-blockchain-api/dist/esm/index.js",
"^@docknetwork/dock-blockchain-modules$":
"<rootDir>/../dock-blockchain-modules/dist/esm/index.js",
"^@cheqd/sdk(.*)$": "<rootDir>/../../node_modules/@cheqd/sdk/build/cjs/$1",
"^uint8arrays$": "<rootDir>/../../node_modules/uint8arrays/dist/src",
"^file-type$": "<rootDir>/../../node_modules/file-type/index.js",
"^multiformats/(.*)$":
"<rootDir>/../../node_modules/multiformats/dist/src/$1",
},
clearMocks: true,
testTimeout: 30000,
testEnvironment: "./tests/test-environment",
transform: {
"^.+\\.(ts|js)$": ["babel-jest", { rootMode: "upward" }],
},
transformIgnorePatterns: [
"/node_modules/(?!@polkadot|@babel|multiformats|@docknetwork|@stablelib|@cheqd|file-type|uint8arrays|multiformats|strtok3|peek-readable|token-types|uint8array-extra)",
],
workerIdleMemoryLimit: "1G",
verbose: true,
globals: {
Uint8Array,
Uint32Array,
ArrayBuffer,
TextDecoder,
TextEncoder,
Buffer,
},
};