forked from p-11/yellowpages-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (29 loc) · 765 Bytes
/
jest.config.js
File metadata and controls
29 lines (29 loc) · 765 Bytes
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
29
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'node',
transform: {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
babelConfig: './src/__tests__/babel.config.js'
}
],
'^.+\\.js$': [
'babel-jest',
{
configFile: './src/__tests__/babel.config.js'
}
]
},
transformIgnorePatterns: [
// Transform ESM modules that we need
'/node_modules/(?!(bitcoin-address-validation|base58-js|@evervault)/)'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
// Exclude e2e tests and config files
testPathIgnorePatterns: ['\\.e2e\\.test\\.[jt]sx?$', 'babel\\.config\\.js$']
};