8000 Shave another couple seconds off test runtime · powercoder23/immutable-js@bc99942 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc99942

Browse files
committed
Shave another couple seconds off test runtime
1 parent 6bb9e4a commit bc99942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/jestPreprocessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
process: function(src, filePath) {
5757
if (filePath.match(/\.ts$/) && !filePath.match(/\.d\.ts$/)) {
5858
return compileTypeScript(filePath);
59-
} else if (filePath.match(/\.js$/)) {
59+
} else if (filePath.match(/\.js$/) && ~filePath.indexOf('/__tests__/')) {
6060
var result = react.transform(src, {harmony: true}).replace(
6161
/require\('immutable/g,
6262
"require('" + path.relative(path.dirname(filePath), process.cwd())

0 commit comments

Comments
 (0)
0