diff --git a/config/jest.config.js b/config/jest.config.js index f9837eb56..9948c4088 100644 --- a/config/jest.config.js +++ b/config/jest.config.js @@ -1,5 +1,6 @@ const path = require('path'); const fs = require('fs'); +const { defaults: tsjPreset } = require('ts-jest/presets'); const presets = require('../lib/presets'); @@ -39,6 +40,6 @@ module.exports = { configFile: presets.babel.resolvedFilepath, }, ], - '^.+\\.[tj]sx?$': path.resolve(__dirname, '../node_modules/.bin/ts-jest'), + ...tsjPreset.transform, }, };