Skip to content

Commit 15f831e

Browse files
committed
catch exception during TestCases compilation run
1 parent 0995830 commit 15f831e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/TestCases.template.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const describeCases = config => {
231231
_require.webpackTestSuiteRequire = true;
232232
_require("./bundle.js");
233233
if (exportedTests.length === 0)
234-
throw new Error("No tests exported by test case");
234+
return done(new Error("No tests exported by test case"));
235235

236236
const asyncSuite = describe("exported tests", () => {
237237
exportedTests.forEach(

0 commit comments

Comments
 (0)