forked from ava-labs/core-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (26 loc) · 964 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
23
24
25
26
27
/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */
module.exports = {
clearMocks: true,
preset: 'ts-jest',
resolver: '<rootDir>/src/tests/resolver.js',
testEnvironment: 'jest-environment-jsdom',
setupFilesAfterEnv: ['<rootDir>/src/tests/setupTests.ts'],
moduleNameMapper: {
'^@src/(.*)': '<rootDir>/src/$1',
'\\.(css|less|scss)$': 'identity-obj-proxy',
'^uuid$': require.resolve('uuid'),
},
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
},
transformIgnorePatterns: [`/node_modules/(?!micro-eth-signer)`],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
globals: {
EVM_PROVIDER_INFO_NAME: 'EVM_PROVIDER_INFO_NAME',
EVM_PROVIDER_INFO_UUID: 'EVM_PROVIDER_INFO_UUID',
EVM_PROVIDER_INFO_ICON: 'EVM_PROVIDER_INFO_ICON',
EVM_PROVIDER_INFO_DESCRIPTION: 'EVM_PROVIDER_INFO_DESCRIPTION',
EVM_PROVIDER_INFO_RDNS: 'EVM_PROVIDER_INFO_RDNS',
CORE_EXTENSION_VERSION: 'CORE_EXTENSION_VERSION',
},
};