Skip to content

Commit 804eb5a

Browse files
committed
fix(e2e): add detectOpenHandles and forceExit options to jest configuration
1 parent 7a94d2f commit 804eb5a

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

api/e2e/books.integration.e2e.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ describe('Test for books', () => {
1818
app = createApp();
1919
});
2020

21+
afterAll;
22+
2123
describe('test for [GET] /api/v1/books', () => {
2224
test('should return a list books', () => {
2325
// Arrange

api/e2e/jest.config.e2e.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"testEnvironment": "node",
55
"moduleFileExtensions": ["js", "json"],
66
"verbose": true,
7-
"clearMocks": true
7+
"clearMocks": true,
8+
"detectOpenHandles": true,
9+
"forceExit": true
810
}

0 commit comments

Comments
 (0)