Skip to content

Commit

Permalink
Merge pull request #551 from baruchiro/babel-jest
Browse files Browse the repository at this point in the history
Fix babel and jest
  • Loading branch information
eransakal authored Feb 19, 2021
2 parents 3210e17 + 4677c80 commit 9eee312
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const packageJson = require("./package.json");

const presets = [
[
"@babel/preset-env",
Expand Down
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// https://jestjs.io/docs/en/configuration.html

module.exports = {
preset: 'ts-jest/presets/js-with-babel',
clearMocks: true,
coverageDirectory: 'coverage',
rootDir: './src',
Expand All @@ -12,4 +13,9 @@ module.exports = {
'./tests/jest-setup.ts',
],
testEnvironment: 'node',
globals: {
'ts-jest': {
babelConfig: true,
}
},
};

0 comments on commit 9eee312

Please sign in to comment.