Merge pull request #3666 from tanhauhau/tanhauhau/show-output-if-test-error-does-not-match

[unit-test] show generated output if the error message does not match
pull/3727/head
Rich Harris 5 years ago committed by GitHub
commit 9534b27ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -191,10 +191,12 @@ describe("runtime", () => {
assert.equal(config.error, err.message);
}
} else {
failed.add(dir);
showOutput(cwd, compileOptions, compile); // eslint-disable-line no-console
throw err;
}
}).catch(err => {
failed.add(dir);
showOutput(cwd, compileOptions, compile); // eslint-disable-line no-console
throw err;
})
.catch(err => {
// print a clickable link to open the directory

Loading…
Cancel
Save