mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
4d07ed0efa
Since "Deno.spawn()", "Deno.spawnSync()" and "Deno.spawnChild" are getting deprecated, this commits rewrites all tests and utilities to use "Deno.Command" API instead.
8 lines
276 B
TypeScript
8 lines
276 B
TypeScript
await new Deno.Command(Deno.execPath(), {
|
|
args: ["eval", "--quiet", "console.log('Hello, world! 1')"],
|
|
stdout: "inherit",
|
|
}).output();
|
|
new Deno.Command(Deno.execPath(), {
|
|
args: ["eval", "--quiet", "console.log('Hello, world! 2')"],
|
|
stdout: "inherit",
|
|
}).outputSync();
|