Skip to content

Commit

Permalink
Merge pull request #452 from umijs/fix/umi-test
Browse files Browse the repository at this point in the history
fix(umi-test): module-resovle pllugin conflict and json ext support
  • Loading branch information
sorrycc authored May 11, 2018
2 parents 43b5e4a + b880b5f commit 8759f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/umi-test/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function(opts = {}) {
'\\.tsx?$': require.resolve('./transformers/tsTransformer'),
},
testMatch: ['**/?(*.)(spec|test|e2e).(j|t)s?(x)'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
setupTestFrameworkScriptFile: require.resolve('./jasmine'),
moduleNameMapper: {
'\\.(css|less|sass|scss)$': require.resolve('identity-obj-proxy'),
Expand Down
1 change: 1 addition & 0 deletions packages/umi-test/src/transformers/jsTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default babelJest.createTransformer({
enzyme: require.resolve('enzyme'),
},
},
'module-resolver-in-umi-test',
],
],
});

0 comments on commit 8759f1a

Please sign in to comment.