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

View File

@ -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() {