diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-04-24 16:21:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-24 17:21:22 +0200 |
| commit | e9041b9edc371f2cbd41a354591b5663f2bb4c84 (patch) | |
| tree | 243140b739556cfcbf85baa2c0ec1cb058f65975 /cli/tests/testdata | |
| parent | 4b7d306a198d020ce2b6fa1c758c71714bfd036c (diff) | |
fix(runtime/js/spawn): Pass stdio options for spawn() and spawnSync() (#14358)
Diffstat (limited to 'cli/tests/testdata')
| -rw-r--r-- | cli/tests/testdata/spawn_stdout_inherit.ts | 8 | ||||
| -rw-r--r-- | cli/tests/testdata/spawn_stdout_inherit.ts.out | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/testdata/spawn_stdout_inherit.ts b/cli/tests/testdata/spawn_stdout_inherit.ts new file mode 100644 index 000000000..be5f9b7ef --- /dev/null +++ b/cli/tests/testdata/spawn_stdout_inherit.ts @@ -0,0 +1,8 @@ +await Deno.spawn(Deno.execPath(), { + args: ["eval", "--quiet", "console.log('Hello, world! 1')"], + stdout: "inherit", +}); +Deno.spawnSync(Deno.execPath(), { + args: ["eval", "--quiet", "console.log('Hello, world! 2')"], + stdout: "inherit", +}); diff --git a/cli/tests/testdata/spawn_stdout_inherit.ts.out b/cli/tests/testdata/spawn_stdout_inherit.ts.out new file mode 100644 index 000000000..474891cf2 --- /dev/null +++ b/cli/tests/testdata/spawn_stdout_inherit.ts.out @@ -0,0 +1,2 @@ +Hello, world! 1 +Hello, world! 2 |
