fobban
fobban11mo ago

Deno testing with local oak server

I'm trying to setup a simple oak application for a few tests. The test steps work as expected but I can't exit/close the oak application by aborting the signal without the test runner throwing an error.
BadResource: Bad resource ID
[...]
This error was not caught from a test and caused the test runner to fail on the referenced module.
It most likely originated from a dangling promise, event/timeout handler or top-level code.
BadResource: Bad resource ID
[...]
This error was not caught from a test and caused the test runner to fail on the referenced module.
It most likely originated from a dangling promise, event/timeout handler or top-level code.
I've setup a simple example to illustrate my issue: deno test --allow-net=0.0.0.0 https://gist.githubusercontent.com/mlandalv/dca12ca72dcbb552a0fbecc27468310a/raw/4b401fb891b128052f48c1935be897a60c5d9ed2/example_test.ts Any help to figure out how to get this to work properly is greatly appreciated.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?