From 958f21e7abc36f0a5abaa381ed8d7f94c723f3fb Mon Sep 17 00:00:00 2001 From: Adam Odziemkowski Date: Fri, 29 May 2020 02:43:31 -0400 Subject: fix(cli): write lock file before running any code (#5794) --- cli/tests/lock_write_fetch.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cli/tests/lock_write_fetch.ts') diff --git a/cli/tests/lock_write_fetch.ts b/cli/tests/lock_write_fetch.ts index 9e7190596..5a4dea0ce 100644 --- a/cli/tests/lock_write_fetch.ts +++ b/cli/tests/lock_write_fetch.ts @@ -32,6 +32,8 @@ const fetchCheckProc = Deno.run({ const fetchCheckProcCode = (await fetchCheckProc.status()).code; console.log(`fetch check code: ${fetchCheckProcCode}`); +Deno.removeSync("./lock_write_fetch.json"); + const runProc = Deno.run({ stdout: "null", stderr: "null", @@ -39,7 +41,10 @@ const runProc = Deno.run({ Deno.execPath(), "run", "--lock=lock_write_fetch.json", - "https_import.ts", + "--lock-write", + "--allow-read", + "file_exists.ts", + "lock_write_fetch.json", ], }); -- cgit v1.2.3