Skip to content

Commit

Permalink
Remove built-in rewire from jest config (#347)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Farro <joef@uber.com>
  • Loading branch information
tiffon authored and timarney committed Jan 6, 2019
1 parent db4ed32 commit d64db3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
17 changes: 0 additions & 17 deletions packages/react-app-rewired/scripts/utils/babelTransform.js

This file was deleted.

9 changes: 1 addition & 8 deletions packages/react-app-rewired/scripts/utils/rewireJestConfig.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
'use strict';

const path = require('path');
const paths = require('./paths');

module.exports = (config) => {
// TODO: remove in major release
Object.keys(config.transform).forEach((key) => {
if (config.transform[key].endsWith('babelTransform.js')) {
config.transform[key] = path.resolve(__dirname + '/babelTransform.js');
}
});
const overrides = Object.assign({}, require(paths.appPackageJson).jest);

// Jest configuration in package.json will be added to the the default config
Object.keys(overrides)
.forEach(key => {
Expand Down

0 comments on commit d64db3b

Please sign in to comment.