diff options
Diffstat (limited to 'tests/specs/workspaces/patch/workspace/my-pkg')
-rw-r--r-- | tests/specs/workspaces/patch/workspace/my-pkg/deno.json | 8 | ||||
-rw-r--r-- | tests/specs/workspaces/patch/workspace/my-pkg/mod.test.ts | 7 | ||||
-rw-r--r-- | tests/specs/workspaces/patch/workspace/my-pkg/mod.ts | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/specs/workspaces/patch/workspace/my-pkg/deno.json b/tests/specs/workspaces/patch/workspace/my-pkg/deno.json new file mode 100644 index 000000000..8b2e887e7 --- /dev/null +++ b/tests/specs/workspaces/patch/workspace/my-pkg/deno.json @@ -0,0 +1,8 @@ +{ + "name": "@scope/my-pkg", + "version": "1.0.0", + "exports": "./mod.ts", + "imports": { + "@denotest/add": "jsr:@denotest/add@1" + } +} diff --git a/tests/specs/workspaces/patch/workspace/my-pkg/mod.test.ts b/tests/specs/workspaces/patch/workspace/my-pkg/mod.test.ts new file mode 100644 index 000000000..1c694298c --- /dev/null +++ b/tests/specs/workspaces/patch/workspace/my-pkg/mod.test.ts @@ -0,0 +1,7 @@ +import { add } from "./mod.ts"; + +Deno.test("add", () => { + if (add(1, 2) !== 3) { + throw new Error("fail"); + } +}); diff --git a/tests/specs/workspaces/patch/workspace/my-pkg/mod.ts b/tests/specs/workspaces/patch/workspace/my-pkg/mod.ts new file mode 100644 index 000000000..11501ab39 --- /dev/null +++ b/tests/specs/workspaces/patch/workspace/my-pkg/mod.ts @@ -0,0 +1 @@ +export { add } from "@denotest/add"; |