Skip to content

Commit 77031a4

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 c387b9c commit 77031a4

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

+3
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)