forked from JoinColony/purser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
26 lines (26 loc) · 1.24 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
module.exports = {
rootDir: '.',
testPathIgnorePatterns: [
'<rootDir>/tests',
'!<rootDir>/node_modules',
],
transformIgnorePatterns: [
'<rootDir>/node_modules',
'!<rootDir>/modules/node_modules',
],
moduleNameMapper: {
'^@mocks/(.*)$': '<rootDir>/modules/tests/mocks/@colony/$1',
'^ethers/wallet$': '<rootDir>/modules/tests/mocks/ethers/wallet/index.js',
'^ethers/utils$': '<rootDir>/modules/tests/mocks/ethers/utils/index.js',
'^ethers/utils/secret-storage$': '<rootDir>/modules/tests/mocks/ethers/utils/secret-storage.js',
'^ethers/utils/hdnode$': '<rootDir>/modules/tests/mocks/ethers/utils/hdnode.js',
'^ethers/utils/json-wallet': '<rootDir>/modules/tests/mocks/ethers/utils/json-wallet.js',
'^@ledgerhq/hw-transport-u2f$': '<rootDir>/modules/tests/mocks/ledger-hw-transport-u2f.js',
'^@ledgerhq/hw-app-eth$': '<rootDir>/modules/tests/mocks/ledger-hw-app-eth.js',
'^ethereumjs-tx$': '<rootDir>/modules/tests/mocks/ethereumjs-tx.js',
'^ethereumjs-util$': '<rootDir>/modules/tests/mocks/ethereumjs-util.js',
'^bip32-path$': '<rootDir>/modules/tests/mocks/bip32-path.js',
'^hdkey$': '<rootDir>/modules/tests/mocks/hdkey.js',
'^web3$': '<rootDir>/modules/tests/mocks/web3.js',
},
};