forked from glifio/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
26 lines (26 loc) · 1 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 = {
collectCoverageFrom: ['**/*.{js,jsx}', '!**/node_modules/**'],
testPathIgnorePatterns: ['/node_modules/', '/.next/'],
transform: {
'^.+\\.(js|jsx)$': '<rootDir>/node_modules/babel-jest'
},
transformIgnorePatterns: [
'/node_modules/',
'^.+\\.module\\.(css|sass|scss)$'
],
moduleNameMapper: {
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
'@zondax/filecoin-signing-tools':
'<rootDir>/test-utils/mocks/mock-filecoin-signer-wasm.js',
dayjs: '<rootDir>/test-utils/mocks/mock-dates.js',
'next/router': '<rootDir>/test-utils/mocks/mock-routing.js',
'@glif/filecoin-number':
'<rootDir>/test-utils/mocks/mock-filecoin-number.js',
'@glif/filecoin-wallet-provider':
'<rootDir>/test-utils/mocks/mock-wallet-provider.js',
'@zondax/ledger-filecoin':
'<rootDir>/test-utils/mocks/mock-ledger-filecoin.js',
'@ledgerhq/hw-transport-webusb': '<rootDir>/test-utils/mocks/mock-webusb.js'
},
setupFilesAfterEnv: ['./jest.setup.js']
}