-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.js
22 lines (21 loc) · 961 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('@open-web3/dev-config/config/jest.cjs');
module.exports = Object.assign({}, config, {
moduleNameMapper: {
'@reef-defi/api-derive(.*)$': '<rootDir>/packages/api-derive/src/$1',
'@reef-defi/api(.*)$': '<rootDir>/packages/api/src/$1',
'@reef-defi/types(.*)$': '<rootDir>/packages/types/src/$1',
'@reef-defi/type-definitions(.*)$': '<rootDir>/packages/type-definitions/src/$1',
'@reef-defi/sdk-core(.*)$': '<rootDir>/packages/sdk-core/src/$1',
'@reef-defi/sdk-swap(.*)$': '<rootDir>/packages/sdk-swapcore/src/$1'
},
modulePathIgnorePatterns: [
'<rootDir>/build',
'<rootDir>/packages/api/build',
'<rootDir>/packages/types/build',
'<rootDir>/packages/api-derive/build',
'<rootDir>/packages/type-definitions/build',
'<rootDir>/packages/sdk-core/build',
'<rootDir>/packages/sdk-swap/build'
],
transformIgnorePatterns: ['/node_modules/(?!@polkadot|@babel/runtime/helpers/esm/)']
});