Skip to content

Commit

Permalink
anchor regexps for jest transforms (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-johnson authored Feb 26, 2020
1 parent 4ec56fc commit 1b1b9f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createJestConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export function createJestConfig(
) {
const config = {
transform: {
'.(ts|tsx)': require.resolve('ts-jest/dist'),
'.(js|jsx)': require.resolve('babel-jest'), // jest's default
'.(ts|tsx)$': require.resolve('ts-jest/dist'),
'.(js|jsx)$': require.resolve('babel-jest'), // jest's default
},
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
Expand Down

0 comments on commit 1b1b9f8

Please sign in to comment.