Skip to content

Commit 7f7ce88

Browse files
test: shorten the snapshot helper's JSDoc
Review feedback: comments in test/ are at most two short lines, so keep the type annotation and drop the prose. Refs #17121
1 parent 2ef4a06 commit 7f7ce88

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎test/configCases/side-effects/pure-deferred-import/webpack.config.js‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
const target = `async-node${process.versions.node.split(".").map(Number)[0]}`;
44

5-
/**
6-
* Snapshots the emitted bundle, so the annotation is reviewed as part of the
7-
* whole printed output rather than pinned by a substring.
8-
* @param {string} name emitted bundle name
9-
* @returns {(compiler: import("../../../../types").Compiler) => void} plugin
10-
*/
5+
/** @type {(name: string) => (compiler: import("../../../../types").Compiler) => void} */
116
const snapshotBundle = (name) => (compiler) => {
127
compiler.hooks.compilation.tap(
138
"test",

0 commit comments

Comments
 (0)