Skip to content

Commit

Permalink
fix: fix jest config for ts-jest access
Browse files Browse the repository at this point in the history
  • Loading branch information
muselesscreator committed Aug 4, 2023
1 parent 1e2accb commit 21bdbab
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 385 deletions.
5 changes: 3 additions & 2 deletions config/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const fs = require('fs');
const { jsWithTs: tsjPreset } = require('ts-jest/presets');
// const { jsWithTs: tsjPreset } = require('ts-jest/presets');

const presets = require('../lib/presets');

Expand Down Expand Up @@ -40,6 +40,7 @@ module.exports = {
configFile: presets.babel.resolvedFilepath,
},
],
...tsjPreset.transform,
// ...tsjPreset.transform,
'^.+\\.[tj]sx?$': path.resolve(__dirname, '../node_modules/.bin/ts-jest'),
},
};
Loading

0 comments on commit 21bdbab

Please sign in to comment.