File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ if (!process.env.WEBPACK_SERVE) {
40
40
41
41
class Server {
42
42
constructor ( options = { } , compiler ) {
43
- // TODO: remove this after updating serve package
43
+ // TODO: remove this after plugin support is published
44
44
if ( options . hooks ) {
45
45
[ options , compiler ] = [ compiler , options ] ;
46
46
}
Original file line number Diff line number Diff line change @@ -67,6 +67,21 @@ describe('Server', () => {
67
67
compiler . run ( ( ) => { } ) ;
68
68
} ) ;
69
69
70
+ // TODO: remove this after plugin support is published
71
+ it ( 'should create and run server with old parameters order' , ( done ) => {
72
+ const compiler = webpack ( config ) ;
73
+ const server = new Server ( compiler , baseDevConfig ) ;
74
+
75
+ getEntries ( server ) ;
76
+
77
+ compiler . hooks . done . tap ( 'webpack-dev-server' , ( ) => {
78
+ expect ( entries ) . toMatchSnapshot ( ) ;
79
+ server . close ( done ) ;
80
+ } ) ;
81
+
82
+ compiler . run ( ( ) => { } ) ;
83
+ } ) ;
84
+
70
85
it ( 'add hot-only option' , ( done ) => {
71
86
const compiler = webpack ( config ) ;
72
87
const server = createServer (
You can’t perform that action at this time.
0 commit comments