Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"eslint": "^9.9.0",
"fast-check": "^4.1.1",
"husky": "^9.0.7",
"jest": "^29.0.2",
"jest": "^30.0.5",
"neostandard": "^0.12.0",
"node-forge": "^1.3.1",
"proxy": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion test/jest/instanceof-error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ it('Real use-case', async () => {
signal: ac.signal
})

await expect(promise).rejects.toThrowError(/^Th(e|is) operation was aborted\.?$/)
await expect(async () => await promise).rejects.toThrow(/^Th(e|is) operation was aborted\.?$/)

server.close()
await once(server, 'close')
Expand Down
2 changes: 1 addition & 1 deletion test/jest/mock-scope.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ it('Jest works with MockScope.delay - issue #1327', async () => {
signal: ac.signal
})

await expect(promise).rejects.toThrowError('This operation was aborted')
await expect(async () => await promise).rejects.toThrow('This operation was aborted')
}, 1000)
Loading