Skip to content

Commit 485e37c

Browse files
authored
prevent jest hanging after tests finish on CI (#196)
* prevent jest hanging after tests finish on CI * add --detectOpenHandles to debug * force exit jest
1 parent 6e736d4 commit 485e37c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ install:
1414
- npm install webpack@$WEBPACK_VERSION extract-text-webpack-plugin@$EXTRACT_PLUGIN_VERSION || true
1515

1616
script:
17-
- npm test
17+
- npm test -- --forceExit
1818

1919
after_script:
2020
- $(npm bin)/codecov

spec/plugin.integration.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ describe('ManifestPlugin using real fs', function() {
150150
hashes = [];
151151
});
152152

153-
afterAll(() => {
154-
compiler.close()
153+
afterAll((done) => {
154+
compiler.close(done)
155155
})
156156

157157
it('outputs a manifest of one file', function(done) {
@@ -198,8 +198,8 @@ describe('ManifestPlugin using real fs', function() {
198198
isFirstRun = true;
199199
});
200200

201-
afterAll(() => {
202-
compiler.close()
201+
afterAll((done) => {
202+
compiler.close(done)
203203
})
204204

205205
it('outputs a manifest of one file', function(done) {

0 commit comments

Comments
 (0)