We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ded14 commit 741c1bdCopy full SHA for 741c1bd
src/instant-mocha.ts
@@ -72,16 +72,17 @@ export default async function instantMocha(
72
}
73
74
/**
75
- * Seems Webpack's watch callback can't be async.
76
- *
77
* Had issues with Webpackbar and a multi-page test report.
78
* It wasn't possible to clear the previous report output
79
* because it seemed like Webpackbar was storing it and
80
* re-printing.
81
*
82
- * This method is async but it's fine.
+ * Running mocha detached from this stack seems to escape
+ * the stdout caching.
83
*/
84
- runMocha(options);
+ setImmediate(() => {
+ runMocha(options);
85
+ });
86
});
87
} else {
88
await webpackCompiler.$run();
0 commit comments