// 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|derive)(.*)$': '/packages/api-$1/src/$2', // eslint-disable-next-line sort-keys '@polkadot/api(.*)$': '/packages/api/src/$1', '@polkadot/metadata(.*)$': '/packages/metadata/src/$1', '@polkadot/rpc-(core|provider)(.*)$': '/packages/rpc-$1/src/$2', '@polkadot/typegen(.*)$': '/packages/typegen/src/$1', '@polkadot/types-(known|support)(.*)$': '/packages/types-$1/src/$2', // eslint-disable-next-line sort-keys '@polkadot/types(.*)$': '/packages/types/src/$1' }, modulePathIgnorePatterns: [ '/packages/api/build', '/packages/api-contract/build', '/packages/api-derive/build', '/packages/metadata/build', '/packages/rpc-core/build', '/packages/rpc-provider/build', '/packages/typegen/build', '/packages/types/build', '/packages/types-known/build', '/packages/types-support/build' ], testTimeout: 30000, transformIgnorePatterns: ['/node_modules/(?!@polkadot|@babel/runtime/helpers/esm/)'] };