-
Notifications
You must be signed in to change notification settings - Fork 14
/
jest.config.js
22 lines (22 loc) · 967 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
const config = require('@polkadot/dev/config/jest.cjs');
module.exports = {
...config,
moduleNameMapper: {
'@open-web3/guardian(.*)$': '<rootDir>/packages/guardian/src/$1',
'@open-web3/acala-guardian(.*)$': '<rootDir>/packages/acala-guardian/src/$1',
'@open-web3/laminar-guardian(.*)$': '<rootDir>/packages/laminar-guardian/src/$1',
'@open-web3/guardian-cli(.*)$': '<rootDir>/packages/guardian-cli/src/$1',
'@open-web3/example-guardian(.*)$': '<rootDir>/packages/example-guardian/src/$1'
},
modulePathIgnorePatterns: [
'__mocks__',
'<rootDir>/build',
'<rootDir>/packages/guardian/build',
'<rootDir>/packages/acala-guardian/build',
'<rootDir>/packages/laminar-guardian/build',
'<rootDir>/packages/guardian-cli/build',
'<rootDir>/packages/example-guardian/build'
],
transformIgnorePatterns: ['/node_modules/(?!@polkadot|@acala-network|@laminar|get-port|@babel/runtime/helpers/esm/)'],
testTimeout: 30000
};