fix(curriculum): include stack with test errors (#39209)

This commit is contained in:
Oliver Eyton-Williams 2020-07-09 17:45:09 +02:00 committed by GitHub
parent aab60d299d
commit ab1f14246a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,8 +205,9 @@ function cleanup() {
}
function runTests({ challengesForLang, meta }) {
// rethrow unhandled rejections to make sure the tests exit with -1
process.on('unhandledRejection', err => {
throw new Error(`unhandledRejection: ${err.name}, ${err.message}`);
throw err;
});
describe('Check challenges', function() {