diff options
Diffstat (limited to 'tests/specs/check/package_json')
| -rw-r--r-- | tests/specs/check/package_json/__test__.jsonc | 13 | ||||
| -rw-r--r-- | tests/specs/check/package_json/check.out | 1 | ||||
| -rw-r--r-- | tests/specs/check/package_json/install.out | 3 | ||||
| -rw-r--r-- | tests/specs/check/package_json/lib.ts | 9 | ||||
| -rw-r--r-- | tests/specs/check/package_json/main.ts | 3 | ||||
| -rw-r--r-- | tests/specs/check/package_json/package.json | 5 |
6 files changed, 34 insertions, 0 deletions
diff --git a/tests/specs/check/package_json/__test__.jsonc b/tests/specs/check/package_json/__test__.jsonc new file mode 100644 index 000000000..29a964b9f --- /dev/null +++ b/tests/specs/check/package_json/__test__.jsonc @@ -0,0 +1,13 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "install", + "output": "install.out" + }, + { + "args": "check main.ts", + "output": "check.out" + } + ] +} diff --git a/tests/specs/check/package_json/check.out b/tests/specs/check/package_json/check.out new file mode 100644 index 000000000..bb9406725 --- /dev/null +++ b/tests/specs/check/package_json/check.out @@ -0,0 +1 @@ +Check file://[WILDCARD]/main.ts diff --git a/tests/specs/check/package_json/install.out b/tests/specs/check/package_json/install.out new file mode 100644 index 000000000..b8114c12a --- /dev/null +++ b/tests/specs/check/package_json/install.out @@ -0,0 +1,3 @@ +Download http://localhost:4260/@denotest/esm-basic +Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz +Initialize @denotest/esm-basic@1.0.0 diff --git a/tests/specs/check/package_json/lib.ts b/tests/specs/check/package_json/lib.ts new file mode 100644 index 000000000..1deed81f7 --- /dev/null +++ b/tests/specs/check/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/check/package_json/main.ts b/tests/specs/check/package_json/main.ts new file mode 100644 index 000000000..e241f3002 --- /dev/null +++ b/tests/specs/check/package_json/main.ts @@ -0,0 +1,3 @@ +import { getValue } from "./lib.ts"; + +console.log(getValue()); diff --git a/tests/specs/check/package_json/package.json b/tests/specs/check/package_json/package.json new file mode 100644 index 000000000..54ca824d6 --- /dev/null +++ b/tests/specs/check/package_json/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@denotest/esm-basic": "*" + } +} |
