We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fdc6b7 commit 4269aa3Copy full SHA for 4269aa3
test/server/Server.test.js
@@ -128,6 +128,32 @@ describe('Server', () => {
128
});
129
130
131
+ describe('listen', () => {
132
+ let compiler;
133
+ let server;
134
+
135
+ beforeAll(() => {
136
+ compiler = webpack(config);
137
+ });
138
139
+ afterEach((done) => {
140
+ server.close(() => {
141
+ done();
142
143
144
145
+ it('should listen and not throw error', () => {
146
+ const options = {
147
+ port,
148
+ host: 'localhost',
149
+ };
150
151
+ server = new Server(compiler, options);
152
153
+ expect(() => server.listen(port, 'localhost')).not.toThrowError();
154
155
156
157
describe('checkHost', () => {
158
let compiler;
159
let server;
0 commit comments