Skip to content

Commit 1ed5a26

Browse files
committed
chore: add multi-compiler test
1 parent b47975d commit 1ed5a26

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/server/Server.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ describe('Server', () => {
8282
compiler.run(() => {});
8383
});
8484

85+
// TODO: remove this after plugin support is published
86+
it('should create and run server with MultiCompiler with old parameters order', (done) => {
87+
const compiler = webpack([config, config]);
88+
const server = new Server(compiler, baseDevConfig);
89+
90+
compiler.hooks.done.tap('webpack-dev-server', () => {
91+
server.close(done);
92+
});
93+
94+
compiler.run(() => {});
95+
});
96+
8597
it('add hot-only option', (done) => {
8698
const compiler = webpack(config);
8799
const server = createServer(

0 commit comments

Comments
 (0)