diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-04-29 10:08:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-29 10:08:27 -0400 |
| commit | da52058a945999d486b07700d2834f027a65947c (patch) | |
| tree | b6031c274cbc36dcefc6d681473e366cdb208c89 /tests/specs/cache/package_json | |
| parent | b02ffec37c73be8a73b95b33b32efa693e84e01b (diff) | |
chore: migrate bench, publish, and more itests to spec tests (#23584)
Diffstat (limited to 'tests/specs/cache/package_json')
| -rw-r--r-- | tests/specs/cache/package_json/__test__.jsonc | 5 | ||||
| -rw-r--r-- | tests/specs/cache/package_json/lib.ts | 9 | ||||
| -rw-r--r-- | tests/specs/cache/package_json/main.cache.out | 3 | ||||
| -rw-r--r-- | tests/specs/cache/package_json/main.ts | 3 | ||||
| -rw-r--r-- | tests/specs/cache/package_json/package.json | 5 |
5 files changed, 25 insertions, 0 deletions
diff --git a/tests/specs/cache/package_json/__test__.jsonc b/tests/specs/cache/package_json/__test__.jsonc new file mode 100644 index 000000000..b25ac147d --- /dev/null +++ b/tests/specs/cache/package_json/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "tempDir": true, + "args": "cache main.ts", + "output": "main.cache.out" +} diff --git a/tests/specs/cache/package_json/lib.ts b/tests/specs/cache/package_json/lib.ts new file mode 100644 index 000000000..1deed81f7 --- /dev/null +++ b/tests/specs/cache/package_json/lib.ts @@ -0,0 +1,9 @@ +import * as test from "@denotest/esm-basic"; + +export function add(a: number, b: number) { + return a + b; +} + +export function getValue() { + return test.getValue(); +} diff --git a/tests/specs/cache/package_json/main.cache.out b/tests/specs/cache/package_json/main.cache.out new file mode 100644 index 000000000..1c729e2a3 --- /dev/null +++ b/tests/specs/cache/package_json/main.cache.out @@ -0,0 +1,3 @@ +Download http://localhost:4545/npm/registry/@denotest/esm-basic +Download http://localhost:4545/npm/registry/@denotest/esm-basic/1.0.0.tgz +Initialize @denotest/esm-basic@1.0.0 diff --git a/tests/specs/cache/package_json/main.ts b/tests/specs/cache/package_json/main.ts new file mode 100644 index 000000000..e241f3002 --- /dev/null +++ b/tests/specs/cache/package_json/main.ts @@ -0,0 +1,3 @@ +import { getValue } from "./lib.ts"; + +console.log(getValue()); diff --git a/tests/specs/cache/package_json/package.json b/tests/specs/cache/package_json/package.json new file mode 100644 index 000000000..54ca824d6 --- /dev/null +++ b/tests/specs/cache/package_json/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@denotest/esm-basic": "*" + } +} |
