Skip to content

fix(deno): close all subprocess resources#1238

Merged
evanw merged 3 commits intoevanw:masterfrom
lucacasonato:deno-bugfixes
May 6, 2021
Merged

fix(deno): close all subprocess resources#1238
evanw merged 3 commits intoevanw:masterfrom
lucacasonato:deno-bugfixes

Conversation

@lucacasonato
Copy link
Copy Markdown
Contributor

PR is split into three independent commits with comments for easy reviewing :-)

This commit switches the custom test runner to the built in Deno one.

Tests in a single module are now run in series, but if more tests are
added they can be split across files and the upcoming `--jobs` arg can
be used for parallization.
This commit fixes lib/deno/mod.ts to close all subprocess resources on
cleanup, so stdout and stdin, not just the child process itself.

This commit also changes `esbuild.stop` and `esbuild.initalize` to be
callable multiple times in the same isolate.
Comment thread scripts/deno-tests.js
console.error(`❌ deno tests failed`)
Deno.exit(1)
} else {
console.log(`✅ deno tests passed`)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had this in there because I run all tests in parallel and without this it's hard to see which top-level test failed. That's ok though; I can add this back.

@evanw
Copy link
Copy Markdown
Owner

evanw commented May 6, 2021

Thanks for contributing this! I appreciate it.

@evanw evanw merged commit 7c3ff95 into evanw:master May 6, 2021
evanw added a commit that referenced this pull request May 6, 2021
@lucacasonato lucacasonato deleted the deno-bugfixes branch May 6, 2021 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants