Skip to content

Commit

Permalink
Remove babelrc dependency for kitchensink test (facebook#5098)
Browse files Browse the repository at this point in the history
* add kitchensink-eject to local-test

* add jest transform

Closes facebook#5095
  • Loading branch information
Jack Zhao authored and Timer committed Sep 26, 2018
1 parent bfa1433 commit ebd8045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions fixtures/kitchensink/jest.integration.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
testEnvironment: 'node',
testMatch: ['**/integration/*.test.js'],
transform: { '^.+\\.js$': './jest.transform.js' },
};
3 changes: 3 additions & 0 deletions fixtures/kitchensink/jest.transform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const babelOptions = { presets: ['react-app'] };

module.exports = require('babel-jest').createTransformer(babelOptions);

0 comments on commit ebd8045

Please sign in to comment.