Skip to content

Commit 7d1f8cc

Browse files
test: assert the resolver filesystem counters with expect
1 parent 02653a1 commit 7d1f8cc

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎test/configCases/resolve/custom-file-system/webpack.config.js‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,8 @@ module.exports = {
5151
{
5252
apply(compiler) {
5353
compiler.hooks.done.tap("TestPlugin", () => {
54-
if (moduleCounter.calls === 0) {
55-
throw new Error("resolve.fileSystem was not used");
56-
}
57-
58-
if (loaderCounter.calls === 0) {
59-
throw new Error("resolveLoader.fileSystem was not used");
60-
}
54+
expect(moduleCounter.calls).toBeGreaterThan(0);
55+
expect(loaderCounter.calls).toBeGreaterThan(0);
6156
});
6257
}
6358
}

0 commit comments

Comments
 (0)