forked from Timikcool/learn-web3-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
28 lines (28 loc) · 1.11 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
27
28
module.exports = {
testPathIgnorePatterns: ['./node_modules/', './.next/'],
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
],
transform: {
/* Use babel-jest to transpile tests with the next/babel preset
https://jestjs.io/docs/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object */
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', {presets: ['next/babel']}],
},
transformIgnorePatterns: [
'/node_modules/',
'^.+\\.module\\.(css|sass|scss)$',
],
modulePaths: ['node_modules', '<rootDir>'],
moduleNameMapper: {
'^@figment-solana/(.*)$': 'components/protocols/solana/$1',
'^@figment-polkadot/(.*)$': 'components/protocols/polka/$1',
'^@figment-near/(.*)$': 'components/protocols/near/$1',
'^@figment-celo/(.*)$': 'components/protocols/celo/$1',
'^@figment-tezos/(.*)$': 'components/protocols/tezos/$1',
'^@figment-secret/(.*)$': 'components/protocols/secret/$1',
'^@figment-avalanche/(.*)$': 'components/protocols/avalanche/$1',
'^@figment-polygon/(.*)$': 'components/protocols/polygon/$1',
},
};