(options)
| 12 | * @returns {import("../").MultiCompiler} compiler |
| 13 | */ |
| 14 | const createMultiCompiler = (options) => { |
| 15 | const compiler = /** @type {import("../").MultiCompiler} */ ( |
| 16 | webpack( |
| 17 | /** @type {import("../").MultiConfiguration} */ ( |
| 18 | Object.assign( |
| 19 | [ |
| 20 | { |
| 21 | name: "a", |
| 22 | context: path.join(__dirname, "fixtures"), |
| 23 | entry: "./a.js" |
| 24 | }, |
| 25 | { |
| 26 | name: "b", |
| 27 | context: path.join(__dirname, "fixtures"), |
| 28 | entry: "./b.js" |
| 29 | } |
| 30 | ], |
| 31 | options |
| 32 | ) |
| 33 | ) |
| 34 | ) |
| 35 | ); |
| 36 | compiler.outputFileSystem = /** @type {import("../").OutputFileSystem} */ ( |
| 37 | /** @type {unknown} */ (createFsFromVolume(new Volume())) |
| 38 | ); |
| 39 | compiler.watchFileSystem = |
| 40 | /** @type {import("../lib/util/fs").WatchFileSystem} */ ({ |
| 41 | watch: (_a, _b, _c, _d, _e, _f, _g) => |
| 42 | /** @type {import("../lib/util/fs").Watcher} */ ( |
| 43 | /** @type {unknown} */ (undefined) |
| 44 | ) |
| 45 | }); |
| 46 | return compiler; |
| 47 | }; |
| 48 | |
| 49 | describe("MultiCompiler", () => { |
| 50 | expectNoDeprecations(); |
no test coverage detected