// Copyright 2017-2020 @polkadot/util authors & contributors // SPDX-License-Identifier: Apache-2.0 const config = require('@polkadot/dev/config/jest'); module.exports = Object.assign({}, config, { moduleNameMapper: { '@polkadot/keyring(.*)$': '/packages/keyring/src/$1', '@polkadot/networks(.*)$': '/packages/networks/src/$1', '@polkadot/util-(crypto)(.*)$': '/packages/util-$1/src/$2', // eslint-disable-next-line sort-keys '@polkadot/util(.*)$': '/packages/util/src/$1', '@polkadot/x-(fetch|randomvalues|textdecoder|textencoder|ws)(.*)$': '/packages/x-$1/src/node' }, modulePathIgnorePatterns: [ '/packages/keyring/build', '/packages/networks/build', '/packages/util/build', '/packages/util-crypto/build', '/packages/x-fetch/build', '/packages/x-randomvalues/build', '/packages/x-textdecoder/build', '/packages/x-textencoder/build', '/packages/x-ws/build' ], resolver: '@polkadot/dev/config/jest-resolver' });