Skip to content

Commit

Permalink
drop! test
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Jul 10, 2023
1 parent 8ba75b6 commit a06d7ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/cli_update_check_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ Deno.test({
const tmpDirName = await Deno.makeTempDir();
const filePath = join(tmpDirName, "fresh-latest.json");

await new Deno.Command(Deno.execPath(), {
const out = await new Deno.Command(Deno.execPath(), {
args: ["run", "-A", "./tests/fixture_update_check/mod.ts"],
env: {
DENO_DIR: tmpDirName,
},
}).output();

const decoder = new TextDecoder();
console.log("CI", Deno.env.get("CI"));

console.log(decoder.decode(out.stdout), decoder.decode(out.stderr));

const text = JSON.parse(await Deno.readTextFile(filePath));
assertEquals(text, {
current_version: "1.2.0",
Expand Down

0 comments on commit a06d7ec

Please sign in to comment.