(
/** @type {Record<string, unknown> | undefined} */ progressOptions = undefined,
/** @type {Record<string, unknown> | undefined} */ configOptions = undefined
)
| 10 | const expectNoDeprecations = require("./helpers/expectNoDeprecations"); |
| 11 | |
| 12 | const createMultiCompiler = ( |
| 13 | /** @type {Record<string, unknown> | undefined} */ progressOptions = undefined, |
| 14 | /** @type {Record<string, unknown> | undefined} */ configOptions = undefined |
| 15 | ) => { |
| 16 | const compiler = webpack( |
| 17 | Object.assign( |
| 18 | [ |
| 19 | { |
| 20 | context: path.join(__dirname, "fixtures"), |
| 21 | entry: "./a.js" |
| 22 | }, |
| 23 | { |
| 24 | context: path.join(__dirname, "fixtures"), |
| 25 | entry: "./b.js" |
| 26 | } |
| 27 | ], |
| 28 | configOptions |
| 29 | ) |
| 30 | ); |
| 31 | compiler.outputFileSystem = /** @type {import("../").OutputFileSystem} */ ( |
| 32 | /** @type {unknown} */ (createFsFromVolume(new Volume())) |
| 33 | ); |
| 34 | |
| 35 | new webpack.ProgressPlugin(progressOptions).apply(compiler); |
| 36 | |
| 37 | return compiler; |
| 38 | }; |
| 39 | |
| 40 | const createSimpleCompiler = ( |
| 41 | /** @type {Record<string, unknown> | undefined} */ progressOptions = undefined |
no test coverage detected