diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml index 40f5f62..fea9b66 100644 --- a/.github/workflows/lint-and-test.yaml +++ b/.github/workflows/lint-and-test.yaml @@ -22,4 +22,4 @@ jobs: run: deno lint --unstable - name: Run tests - run: deno test --unstable + run: deno test --unstable --allow-read --allow-env --allow-run diff --git a/test.ts b/test.ts new file mode 100644 index 0000000..e2a6e4b --- /dev/null +++ b/test.ts @@ -0,0 +1,11 @@ +/// + +import { assertEquals } from "https://deno.land/std@0.104.0/testing/asserts.ts"; + +import { $ } from "./mod.ts"; + +Deno.test("$ works", async () => { + const result = await $`echo hello`; + + assertEquals(result.stdout, "hello\n"); +});