fix(curriculum): include stack with test errors (#39209)
This commit is contained in:
committed by
GitHub
parent
aab60d299d
commit
ab1f14246a
@ -205,8 +205,9 @@ function cleanup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function runTests({ challengesForLang, meta }) {
|
function runTests({ challengesForLang, meta }) {
|
||||||
|
// rethrow unhandled rejections to make sure the tests exit with -1
|
||||||
process.on('unhandledRejection', err => {
|
process.on('unhandledRejection', err => {
|
||||||
throw new Error(`unhandledRejection: ${err.name}, ${err.message}`);
|
throw err;
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Check challenges', function() {
|
describe('Check challenges', function() {
|
||||||
|
Reference in New Issue
Block a user