You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ deno test -A --filter a ./x.ts
running 1 test from ./x.ts
a ... ok (12ms)
ok | 1 passed | 0 failed | 1 filtered out (13ms)
$ deno test -A --filter b ./x.ts
running 1 test from ./x.ts
b ... ok (14ms)
ok | 1 passed | 0 failed | 1 filtered out (15ms)
$ deno test -A ./x.ts
running 2 tests from ./x.ts
a ... ok (11ms)
b ... FAILED (6ms)
ERRORS
b => ./x.ts:12:6
error: Leaks detected:
- A child process was started during the test, but not closed during the test. Close the child process by calling `proc.kill()` or `proc.close()`. - An async operation to waitfora subprocess to exit was startedin this test, but never completed. This is often caused by not awaiting the result of a `Deno.Process#status` call.To get more details where leaks occurred, run again with the --trace-leaks flag. FAILURES b => ./x.ts:12:6FAILED | 1 passed | 1 failed (19ms)error: Test failed
expected
With await esbuild.stop(), deno test not detect resource leaks.
env
deno 1.46.0
The text was updated successfully, but these errors were encountered:
I'm not sure what's up with Deno here but you're trying to use esbuild's npm library with Deno, not esbuild's Deno library with Deno. I suggest using esbuild's Deno library instead of esbuild's npm library as it's meant for use with Deno:
I don't consider behavior of esbuild's npm library that doesn't work well with Deno's npm compatibility layer to be a problem with esbuild as esbuild's npm library is meant for npm, not for Deno.
bug
With
await esbuild.stop()
, deno test still detect resource leaksreproduce
/tmp/reproduce/x.ts
actual
expected
With
await esbuild.stop()
, deno test not detect resource leaks.env
deno 1.46.0
The text was updated successfully, but these errors were encountered: