Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Move babel-jest-test to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Aug 3, 2018
1 parent ee10eae commit 63eac06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions babel-jest-test.js

This file was deleted.

2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ module.exports = {
'!**/coverage/lcov-report/**',
],
transform: {
'^.+\\.jsx?$': path.join(__dirname, '/babel-jest-test'),
'^.+\\.jsx?$': path.join(__dirname, '/lib/babel-jest'),
},
};
5 changes: 5 additions & 0 deletions lib/babel-jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const babelJest = require('babel-jest');
const path = require('path');
const babelRc = JSON.parse(require('fs').readFileSync(path.join(__dirname, '..', '.babelrc'), 'utf8'));

module.exports = babelJest.createTransformer(babelRc);

0 comments on commit 63eac06

Please sign in to comment.