Skip to content

Commit 50cba19

Browse files
test: fix
1 parent 1dd3bc4 commit 50cba19

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"fix:js": "npm run lint:js -- --fix",
2222
"fix": "npm-run-all fix:js fmt",
2323
"commitlint": "commitlint --from=master",
24-
"test:only": "jest --forceExit",
24+
"test:only": "jest",
2525
"test:coverage": "npm run test:only -- --coverage",
2626
"test:watch": "npm run test:coverage --watch",
2727
"test": "npm run test:coverage",

test/server/Server.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ describe('Server', () => {
127127
const emitError = () => server.server.emit('error', new Error('Error !!!'));
128128

129129
expect(emitError).toThrowError();
130+
131+
server.close();
130132
});
131133

132134
// issue: https://github.com/webpack/webpack-dev-server/issues/1724

0 commit comments

Comments
 (0)