Skip to content

Commit

Permalink
add esbuild-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
kristojorg committed Sep 20, 2021
1 parent fef228e commit 4e2cb53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import type { Config } from '@jest/types';

const config: Config.InitialOptions = {
transform: {
'.(ts|tsx)$': require.resolve('ts-jest/dist'),
// '.(ts|tsx)$': require.resolve('ts-jest/dist'),
'^.+\\.tsx?$': 'esbuild-jest',
'^.+\\.jsx?$': 'esbuild-jest',
'.(js|jsx)$': require.resolve('babel-jest'), // jest's default
},
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
Expand Down

0 comments on commit 4e2cb53

Please sign in to comment.