diff --git a/curriculum/test/test-challenges.js b/curriculum/test/test-challenges.js index 1a9f074162..dbf5783db2 100644 --- a/curriculum/test/test-challenges.js +++ b/curriculum/test/test-challenges.js @@ -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() {