Skip to content

Commit

Permalink
chore(jest): fix jest module name mappers
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanwww committed Sep 9, 2023
1 parent 98f3bcd commit e69a3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scripts/src/jest/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function getConfig(): Config {
'^react-native$': 'react-native-web',
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
'^src/(.*)$': '<rootDir>/src/$1',
'^(.*).js$': ['$1.js', '$1.ts'],
'^(.*)\\.js$': ['$1.js', '$1.ts'],
},
moduleFileExtensions: ['js', 'json', 'jsx', 'node', 'ts', 'tsx', 'web.js', 'web.jsx', 'web.ts', 'web.tsx'],

Expand Down

0 comments on commit e69a3e1

Please sign in to comment.