test: show stack of thrown errors

This commit is contained in:
M. George Hansen 2020-06-02 15:46:24 -07:00
parent 1372ce16cb
commit 75ed8c6537
Signed by: mgeorgehansen
SSH key fingerprint: SHA256:JlIGiQLPyQ2RHTH3a2oVlb20Xkh9Glr8DUF4YTXHJxM

View file

@ -104,7 +104,7 @@ export const testSuite = (
if (testResult.result === "fail") {
console.error(
`[TEST FAILURE] "${suiteName}": "${testResult.testName}": ` +
`${testResult.error.message}\n`
`${testResult.error.stack}\n`
);
continue;
}