We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb9e4a commit bc99942Copy full SHA for bc99942
resources/jestPreprocessor.js
@@ -56,7 +56,7 @@ module.exports = {
56
process: function(src, filePath) {
57
if (filePath.match(/\.ts$/) && !filePath.match(/\.d\.ts$/)) {
58
return compileTypeScript(filePath);
59
- } else if (filePath.match(/\.js$/)) {
+ } else if (filePath.match(/\.js$/) && ~filePath.indexOf('/__tests__/')) {
60
var result = react.transform(src, {harmony: true}).replace(
61
/require\('immutable/g,
62
"require('" + path.relative(path.dirname(filePath), process.cwd())
0 commit comments