From 049fd9a902da74ab0346a99efad8d41d75c5c24a Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 28 May 2015 16:09:25 -0700 Subject: [PATCH] Retain lines in babel under jest Now stack trace lines are actually useful. --- jest/preprocessor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jest/preprocessor.js b/jest/preprocessor.js index d08031069e..484cd5c86a 100644 --- a/jest/preprocessor.js +++ b/jest/preprocessor.js @@ -23,7 +23,8 @@ module.exports = { if (!path.match(/\/node_modules\//) && !path.match(/\/third_party\//)) { return babel.transform(src, { blacklist: ['spec.functionName', 'validation.react'], - filename: path + filename: path, + retainLines: true }).code; } return src;