diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-12-02 14:43:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-02 14:43:17 +0100 |
| commit | 4d07ed0efa8f0e2cab1a33f1b7b6a3627bfce69f (patch) | |
| tree | 898aadf1ae739190ed98ec463824f7e9ca8f48eb /tools/util.js | |
| parent | 6982c74e11ec8294ed5bd53d2a9d316d7e20e7d2 (diff) | |
chore: rewrite tests and utils to use Deno.Command API (#16895)
Since "Deno.spawn()", "Deno.spawnSync()" and "Deno.spawnChild"
are getting deprecated, this commits rewrites all tests and utilities to
use "Deno.Command" API instead.
Diffstat (limited to 'tools/util.js')
| -rw-r--r-- | tools/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/util.js b/tools/util.js index d164ca954..49279df58 100644 --- a/tools/util.js +++ b/tools/util.js @@ -14,10 +14,10 @@ export { delay } from "../test_util/std/async/delay.ts"; export const ROOT_PATH = dirname(dirname(fromFileUrl(import.meta.url))); async function getFilesFromGit(baseDir, args) { - const { success, stdout } = await Deno.spawn("git", { + const { success, stdout } = await new Deno.Command("git", { stderr: "inherit", args, - }); + }).output(); const output = new TextDecoder().decode(stdout); if (!success) { throw new Error("gitLsFiles failed"); |
