Skip to content

Commit 87b0851

Browse files
committed
Fix neo4j-driver-lite test suite in newer node versions
UncatchedException errors were being triggered when non-consumed promises are rejected.
1 parent 81e44eb commit 87b0851

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/neo4j-driver-lite/test/unit/index.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ describe('index', () => {
5959
'RETURN 1'
6060
)
6161
expect(result).toBeDefined()
62+
63+
// Catch the error
64+
result.catch(() => {})
6265
})
6366

6467
it('should export an instanciable Record', () => {

0 commit comments

Comments
 (0)