v1rtl
"A fetch response body was created during the test" when invoking a PUT request in a test?
I'm writing a Deno library for uploading files on IPFS.
The code is very simple:
And this is the test file I have:
When running this test this is what Im getting:
I couldn't find much info about the issue - what could be a possible fix?
5 replies
error: BadResource: Bad resource ID
I'm writing tests for https://github.com/deno-libs/tinyhttp/pull/9.
When running this test I get either this:
or this, if I uncomment that line:
10 replies
could not find npm package for
I'm trying to make Hardhat CLI work with Deno but I stumbled upon this error which comes from Deno:
I initialized a new hh project
pnpx hardhat init
then installed hh as a deno binary:
and got this:
p.s. I use that flag cuz here: https://github.com/NomicFoundation/hardhat/blob/main/packages/hardhat-core/src/internal/cli/cli.ts#L1752 replies
Closing a websocket server in a unit test
Hello, I'm an author of rpc lib and I'm currently writing unit tests for it. I am facing a problem of closing a server. How should I do it without
deno
hanging forever?
my test case:
app.listen
here both starts the Deno.listener
and Deno.serveHttp
1 replies