Skip to content

Commit 34c3b80

Browse files
committed
Refactor function name
- `pathsToESMModuleNameMapper` -> `pathsToESModuleNameMapper`
1 parent f592210 commit 34c3b80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { compilerOptions } = require('./tsconfig.json');
1010
*
1111
* @returns Jest path mappings map.
1212
*/
13-
function pathsToESMModuleNameMapper() {
13+
function pathsToESModuleNameMapper() {
1414
const map = pathsToModuleNameMapper(
1515
compilerOptions.paths,
1616
{ prefix: '<rootDir>' },
@@ -39,7 +39,7 @@ export default {
3939
},
4040
},
4141
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
42-
moduleNameMapper: pathsToESMModuleNameMapper(),
42+
moduleNameMapper: pathsToESModuleNameMapper(),
4343
modulePathIgnorePatterns: [
4444
'<rootDir>/dist',
4545
'<rootDir>/node_modules',

0 commit comments

Comments
 (0)