Skip to content

Commit

Permalink
fix(test): Update jestConfig to not transform json file (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebillg authored and michaeltaranto committed May 28, 2019
1 parent 241b27a commit d25df5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/jest/jestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ module.exports = {
// Match any `.js` file that isn't a `.css.js` file.
// We do this by asserting the 4 characters before `.js` aren't `.css`
// or that it has fewer than 4 characters (e.g. `foo.js`)
'((?!(\\.css)).{4}|^.{1,3})\\.js': require.resolve('./jsBabelTransform.js'),
'((?!(\\.css)).{4}|^.{1,3})\\.jsx?$': require.resolve(
'./jsBabelTransform.js',
),
},
transformIgnorePatterns: [
// Allow 'compilePackages' code to be transformed in tests by overriding
Expand Down

0 comments on commit d25df5a

Please sign in to comment.