1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 08:39:09 -05:00
denoland-deno/cli/tests/unit_node/testdata
Marvin Hagemeister f5c1ff08e6
fix(node): map stdio [0, 1, 2] to "inherit" (#19352)
<!--
Before submitting a PR, please read https://deno.com/manual/contributing

1. Give the PR a descriptive title.

  Examples of good title:
    - fix(std/http): Fix race condition in server
    - docs(console): Update docstrings
    - feat(doc): Handle nested reexports

  Examples of bad title:
    - fix #7123
    - update docs
    - fix bugs

2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
   all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
Internally, `node-tap` spawns a child process with `stdio: [0, 1, 2]`.
Whilst we don't support passing fd numbers as an argument so far, it
turns out that `[0, 1, 2]` is equivalent to `"inherit"` which we already
support. See: https://nodejs.org/api/child_process.html#optionsstdio

Mapping it to `"inherit"` is fine for us and gets us one step closer in
getting `node-tap` working. I'm now at the stage where already the
coverage table is shown 🎉
2023-06-02 09:46:50 -06:00
..
node_modules/foo
add_global_property.js fix(ext/node): add missing _preloadModules hook (#18447) 2023-03-27 21:54:22 +02:00
add_global_property_run_main.js chore: fix & update node compat config (#19106) 2023-05-13 14:49:11 +09:00
binary_stdio.js
child_process_stdio.js fix(node): support passing parent stdio streams (#19171) 2023-05-18 14:02:14 +02:00
child_process_stdio_012.js fix(node): map stdio [0, 1, 2] to "inherit" (#19352) 2023-06-02 09:46:50 -06:00
child_process_unref.js
exec_file_text_error.js
exec_file_text_output.js
infinite_loop.js
process_exit.ts
process_exit2.ts
process_really_exit.ts fix(node): add missing process.reallyExit method (#19326) 2023-05-31 12:20:38 +02:00
process_stdin.ts
process_stdin_dummy.txt
rsa_private.pem perf: use ops for node:crypto ciphers (#17819) 2023-02-20 22:22:28 +05:30
rsa_public.pem perf: use ops for node:crypto ciphers (#17819) 2023-02-20 22:22:28 +05:30
worker_threads.mjs fix(ext/node): add basic node:worker_threads support (#19192) 2023-05-23 20:56:29 +02:00