diff --git a/test/_transformation-helper.js b/test/_transformation-helper.js index db754ac9ec..c036440f9e 100644 --- a/test/_transformation-helper.js +++ b/test/_transformation-helper.js @@ -94,7 +94,12 @@ var run = function (task, done) { checkAst(result); actualCode = result.code; - chai.expect(actualCode).to.be.equal(expectCode, actual.loc + " !== " + expect.loc); + try { + chai.expect(actualCode).to.be.equal(expectCode, actual.loc + " !== " + expect.loc); + } catch (err) { + //require("fs").writeFileSync(expect.loc, actualCode); + throw err; + } } if (task.sourceMap) {