diff --git a/test-challenges.js b/test-challenges.js index e47ed22fbc..93a994c30c 100644 --- a/test-challenges.js +++ b/test-challenges.js @@ -72,7 +72,11 @@ function createTest({ title, tests = [], solutions = [] }) { /* eslint-enable no-unused-vars */ solutions.forEach(solution => { tests.forEach(test => { - eval(solution + ';;' + test); + try { + eval(solution + ';;' + test); + } catch (e) { + t.fail(e); + } }); }); })