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