* Split codec into @polkadot/types-codec
* Additional (test cleanups next)
* Fix tests
* Imports from '@polkadot/types-codec
* All remaining codec imports (only exports left)
* Bytes -> types-codec
* Cleanups
* Bool, BitVec, Text movements
* sanitize move
* Adjust (first build fixes)
* Adjust
* Additional
* Adjust
* Adjustments
* linting
* Adjust, not working atm
* Move {U,I}{8,16,32...} to types-codec
* createTypeUnsafe
* Fix type-only exports
* Folder exports
* Split Lookup/Create on registry interfaces
* Clanup LookupRegistry & CreateRegistry
* Combine CreateRegistry into LookupRegistry
20 lines
776 B
JavaScript
20 lines
776 B
JavaScript
// Copyright 2017-2021 @polkadot/api authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
const config = require('@polkadot/dev/config/jest.cjs');
|
|
|
|
module.exports = {
|
|
...config,
|
|
moduleNameMapper: {
|
|
'@polkadot/api-(contract-support|contract|derive)(.*)$': '<rootDir>/packages/api-$1/src/$2',
|
|
// eslint-disable-next-line sort-keys
|
|
'@polkadot/api(.*)$': '<rootDir>/packages/api/src/$1',
|
|
'@polkadot/rpc-(core|provider)(.*)$': '<rootDir>/packages/rpc-$1/src/$2',
|
|
'@polkadot/typegen(.*)$': '<rootDir>/packages/typegen/src/$1',
|
|
'@polkadot/types-(codec|known|support)(.*)$': '<rootDir>/packages/types-$1/src/$2',
|
|
// eslint-disable-next-line sort-keys
|
|
'@polkadot/types(.*)$': '<rootDir>/packages/types/src/$1'
|
|
},
|
|
testTimeout: 30000
|
|
};
|