Make these tests re-throw the same error to keep the trace.

This commit is contained in:
Logan Smyth 2018-03-23 21:26:50 -07:00
parent 19708e0154
commit 21309cc8d4

View File

@ -12,9 +12,9 @@ export function runFixtureTests(fixturesPath, parseFunction) {
try {
runTest(task, parseFunction);
} catch (err) {
const message =
err.message =
name + "/" + task.actual.filename + ": " + err.message;
throw new Error(message);
throw err;
}
});
});
@ -39,9 +39,9 @@ export function runThrowTestsWithEstree(fixturesPath, parseFunction) {
try {
runTest(task, parseFunction);
} catch (err) {
const message =
err.message =
name + "/" + task.actual.filename + ": " + err.message;
throw new Error(message);
throw err;
}
});
});