diff options
Diffstat (limited to 'tests/specs/workspaces/patch/add')
-rw-r--r-- | tests/specs/workspaces/patch/add/deno.json | 5 | ||||
-rw-r--r-- | tests/specs/workspaces/patch/add/mod.test.ts | 9 | ||||
-rw-r--r-- | tests/specs/workspaces/patch/add/mod.ts | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/specs/workspaces/patch/add/deno.json b/tests/specs/workspaces/patch/add/deno.json new file mode 100644 index 000000000..05d24d7b5 --- /dev/null +++ b/tests/specs/workspaces/patch/add/deno.json @@ -0,0 +1,5 @@ +{ + "name": "@denotest/add", + "version": "1.0.0", + "exports": "./mod.ts" +} diff --git a/tests/specs/workspaces/patch/add/mod.test.ts b/tests/specs/workspaces/patch/add/mod.test.ts new file mode 100644 index 000000000..3d3804e07 --- /dev/null +++ b/tests/specs/workspaces/patch/add/mod.test.ts @@ -0,0 +1,9 @@ +import { add } from "./mod.ts"; + +// this test should not be run or linted +Deno.test("add", () => { + let unusedVar = 5; // purposefully causing a lint error to ensure it's not linted + if (add(1, 2) !== 3) { + throw new Error("fail"); + } +}); diff --git a/tests/specs/workspaces/patch/add/mod.ts b/tests/specs/workspaces/patch/add/mod.ts new file mode 100644 index 000000000..97a779a44 --- /dev/null +++ b/tests/specs/workspaces/patch/add/mod.ts @@ -0,0 +1,4 @@ +export function add(a: number, b: number): number { + console.log("adding", a, "and", b); + return a + b; +} |