summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/package_json
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/package_json')
-rw-r--r--cli/tests/testdata/package_json/basic/fail_check.check.out4
-rw-r--r--cli/tests/testdata/package_json/basic/fail_check.ts3
-rw-r--r--cli/tests/testdata/package_json/basic/lib.bench.out11
-rw-r--r--cli/tests/testdata/package_json/basic/lib.bench.ts7
-rw-r--r--cli/tests/testdata/package_json/basic/lib.test.out9
-rw-r--r--cli/tests/testdata/package_json/basic/lib.test.ts7
-rw-r--r--cli/tests/testdata/package_json/basic/lib.ts9
-rw-r--r--cli/tests/testdata/package_json/basic/main.cache.out3
-rw-r--r--cli/tests/testdata/package_json/basic/main.check.out4
-rw-r--r--cli/tests/testdata/package_json/basic/main.info.out8
-rw-r--r--cli/tests/testdata/package_json/basic/main.ts3
-rw-r--r--cli/tests/testdata/package_json/basic/package.json5
-rw-r--r--cli/tests/testdata/package_json/deno_json/deno.json5
-rw-r--r--cli/tests/testdata/package_json/deno_json/main.check.out11
-rw-r--r--cli/tests/testdata/package_json/deno_json/main.out2
-rw-r--r--cli/tests/testdata/package_json/deno_json/main.ts9
-rw-r--r--cli/tests/testdata/package_json/deno_json/other.ts3
-rw-r--r--cli/tests/testdata/package_json/deno_json/package.json5
-rw-r--r--cli/tests/testdata/package_json/invalid_value/error.ts4
-rw-r--r--cli/tests/testdata/package_json/invalid_value/error.ts.out6
-rw-r--r--cli/tests/testdata/package_json/invalid_value/ok.ts4
-rw-r--r--cli/tests/testdata/package_json/invalid_value/ok.ts.out4
-rw-r--r--cli/tests/testdata/package_json/invalid_value/package.json9
-rw-r--r--cli/tests/testdata/package_json/invalid_value/task.out5
24 files changed, 0 insertions, 140 deletions
diff --git a/cli/tests/testdata/package_json/basic/fail_check.check.out b/cli/tests/testdata/package_json/basic/fail_check.check.out
deleted file mode 100644
index 03997a051..000000000
--- a/cli/tests/testdata/package_json/basic/fail_check.check.out
+++ /dev/null
@@ -1,4 +0,0 @@
-error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
-const _test: string = getValue();
- ~~~~~
- at file:///[WILDCARD]/fail_check.ts:3:7
diff --git a/cli/tests/testdata/package_json/basic/fail_check.ts b/cli/tests/testdata/package_json/basic/fail_check.ts
deleted file mode 100644
index cef10763d..000000000
--- a/cli/tests/testdata/package_json/basic/fail_check.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { getValue } from "./lib.ts";
-
-const _test: string = getValue();
diff --git a/cli/tests/testdata/package_json/basic/lib.bench.out b/cli/tests/testdata/package_json/basic/lib.bench.out
deleted file mode 100644
index fa9c5efc6..000000000
--- a/cli/tests/testdata/package_json/basic/lib.bench.out
+++ /dev/null
@@ -1,11 +0,0 @@
-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
-Check file:///[WILDCARD]/lib.bench.ts
-cpu: [WILDCARD]
-runtime: [WILDCARD]
-
-file:///[WILDCARD]/lib.bench.ts
-[WILDCARD]
----------------------------------------------------------------- -----------------------------
-should add [WILDCARD]
diff --git a/cli/tests/testdata/package_json/basic/lib.bench.ts b/cli/tests/testdata/package_json/basic/lib.bench.ts
deleted file mode 100644
index e6b79d025..000000000
--- a/cli/tests/testdata/package_json/basic/lib.bench.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { add } from "./lib.ts";
-
-Deno.bench("should add", () => {
- if (add(1, 2) !== 3) {
- throw new Error("Fail");
- }
-});
diff --git a/cli/tests/testdata/package_json/basic/lib.test.out b/cli/tests/testdata/package_json/basic/lib.test.out
deleted file mode 100644
index fa1cbb0f7..000000000
--- a/cli/tests/testdata/package_json/basic/lib.test.out
+++ /dev/null
@@ -1,9 +0,0 @@
-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
-Check file://[WILDCARD]/lib.test.ts
-running 1 test from [WILDCARD]lib.test.ts
-should add ... ok ([WILDCARD])
-
-ok | 1 passed | 0 failed ([WILDCARD])
-
diff --git a/cli/tests/testdata/package_json/basic/lib.test.ts b/cli/tests/testdata/package_json/basic/lib.test.ts
deleted file mode 100644
index 4e833e1f3..000000000
--- a/cli/tests/testdata/package_json/basic/lib.test.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { add } from "./lib.ts";
-
-Deno.test("should add", () => {
- if (add(1, 2) !== 3) {
- throw new Error("Fail");
- }
-});
diff --git a/cli/tests/testdata/package_json/basic/lib.ts b/cli/tests/testdata/package_json/basic/lib.ts
deleted file mode 100644
index 1deed81f7..000000000
--- a/cli/tests/testdata/package_json/basic/lib.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-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/cli/tests/testdata/package_json/basic/main.cache.out b/cli/tests/testdata/package_json/basic/main.cache.out
deleted file mode 100644
index 1c729e2a3..000000000
--- a/cli/tests/testdata/package_json/basic/main.cache.out
+++ /dev/null
@@ -1,3 +0,0 @@
-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/cli/tests/testdata/package_json/basic/main.check.out b/cli/tests/testdata/package_json/basic/main.check.out
deleted file mode 100644
index a506cb0ed..000000000
--- a/cli/tests/testdata/package_json/basic/main.check.out
+++ /dev/null
@@ -1,4 +0,0 @@
-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
-Check file://[WILDCARD]/main.ts
diff --git a/cli/tests/testdata/package_json/basic/main.info.out b/cli/tests/testdata/package_json/basic/main.info.out
deleted file mode 100644
index 892c0612a..000000000
--- a/cli/tests/testdata/package_json/basic/main.info.out
+++ /dev/null
@@ -1,8 +0,0 @@
-local: [WILDCARD]main.ts
-type: TypeScript
-dependencies: 2 unique
-size: [WILDCARD]
-
-file:///[WILDCARD]/main.ts (63B)
-└─┬ file:///[WILDCARD]/lib.ts (166B)
- └── npm:/@denotest/esm-basic@1.0.0 (471B)
diff --git a/cli/tests/testdata/package_json/basic/main.ts b/cli/tests/testdata/package_json/basic/main.ts
deleted file mode 100644
index e241f3002..000000000
--- a/cli/tests/testdata/package_json/basic/main.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { getValue } from "./lib.ts";
-
-console.log(getValue());
diff --git a/cli/tests/testdata/package_json/basic/package.json b/cli/tests/testdata/package_json/basic/package.json
deleted file mode 100644
index 54ca824d6..000000000
--- a/cli/tests/testdata/package_json/basic/package.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "dependencies": {
- "@denotest/esm-basic": "*"
- }
-}
diff --git a/cli/tests/testdata/package_json/deno_json/deno.json b/cli/tests/testdata/package_json/deno_json/deno.json
deleted file mode 100644
index 8a89da280..000000000
--- a/cli/tests/testdata/package_json/deno_json/deno.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "imports": {
- "other": "./other.ts"
- }
-}
diff --git a/cli/tests/testdata/package_json/deno_json/main.check.out b/cli/tests/testdata/package_json/deno_json/main.check.out
deleted file mode 100644
index 53b6869c0..000000000
--- a/cli/tests/testdata/package_json/deno_json/main.check.out
+++ /dev/null
@@ -1,11 +0,0 @@
-error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
-const _strValue1: string = NUMBER_VALUE;
- ~~~~~~~~~~
- at file:///[WILDCARD]/main.ts:8:7
-
-TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
-const _strValue2: string = test.getValue();
- ~~~~~~~~~~
- at file:///[WILDCARD]/main.ts:9:7
-
-Found 2 errors.
diff --git a/cli/tests/testdata/package_json/deno_json/main.out b/cli/tests/testdata/package_json/deno_json/main.out
deleted file mode 100644
index 1191247b6..000000000
--- a/cli/tests/testdata/package_json/deno_json/main.out
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-2
diff --git a/cli/tests/testdata/package_json/deno_json/main.ts b/cli/tests/testdata/package_json/deno_json/main.ts
deleted file mode 100644
index 7768ff3fc..000000000
--- a/cli/tests/testdata/package_json/deno_json/main.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { NUMBER_VALUE } from "other";
-import * as test from "@denotest/esm-basic";
-
-test.setValue(2);
-console.log(test.getValue());
-
-// these should cause type errors
-const _strValue1: string = NUMBER_VALUE;
-const _strValue2: string = test.getValue();
diff --git a/cli/tests/testdata/package_json/deno_json/other.ts b/cli/tests/testdata/package_json/deno_json/other.ts
deleted file mode 100644
index 997d84adf..000000000
--- a/cli/tests/testdata/package_json/deno_json/other.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-console.log(1);
-
-export const NUMBER_VALUE = 1;
diff --git a/cli/tests/testdata/package_json/deno_json/package.json b/cli/tests/testdata/package_json/deno_json/package.json
deleted file mode 100644
index 54ca824d6..000000000
--- a/cli/tests/testdata/package_json/deno_json/package.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "dependencies": {
- "@denotest/esm-basic": "*"
- }
-}
diff --git a/cli/tests/testdata/package_json/invalid_value/error.ts b/cli/tests/testdata/package_json/invalid_value/error.ts
deleted file mode 100644
index fd75d633c..000000000
--- a/cli/tests/testdata/package_json/invalid_value/error.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// the package.json will error when importing
-import * as test from "@denotest/cjs-default-export";
-
-console.log(test);
diff --git a/cli/tests/testdata/package_json/invalid_value/error.ts.out b/cli/tests/testdata/package_json/invalid_value/error.ts.out
deleted file mode 100644
index faa811a30..000000000
--- a/cli/tests/testdata/package_json/invalid_value/error.ts.out
+++ /dev/null
@@ -1,6 +0,0 @@
-error: Parsing version constraints in the application-level package.json is more strict at the moment.
-
-Invalid specifier version requirement. Unexpected character.
- invalid stuff that won't parse
- ~
- at file:///[WILDCARD]/error.ts:2:23
diff --git a/cli/tests/testdata/package_json/invalid_value/ok.ts b/cli/tests/testdata/package_json/invalid_value/ok.ts
deleted file mode 100644
index ce517439f..000000000
--- a/cli/tests/testdata/package_json/invalid_value/ok.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import * as test from "@denotest/esm-basic";
-
-test.setValue(2);
-console.log(test.getValue());
diff --git a/cli/tests/testdata/package_json/invalid_value/ok.ts.out b/cli/tests/testdata/package_json/invalid_value/ok.ts.out
deleted file mode 100644
index 17d9bba00..000000000
--- a/cli/tests/testdata/package_json/invalid_value/ok.ts.out
+++ /dev/null
@@ -1,4 +0,0 @@
-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
-2
diff --git a/cli/tests/testdata/package_json/invalid_value/package.json b/cli/tests/testdata/package_json/invalid_value/package.json
deleted file mode 100644
index c8857649e..000000000
--- a/cli/tests/testdata/package_json/invalid_value/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "scripts": {
- "test": "echo 1"
- },
- "dependencies": {
- "@denotest/esm-basic": "*",
- "@denotest/cjs-default-export": "invalid stuff that won't parse"
- }
-}
diff --git a/cli/tests/testdata/package_json/invalid_value/task.out b/cli/tests/testdata/package_json/invalid_value/task.out
deleted file mode 100644
index 28e3c770d..000000000
--- a/cli/tests/testdata/package_json/invalid_value/task.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Warning Ignoring dependency '@denotest/cjs-default-export' in package.json because its version requirement failed to parse: Invalid specifier version requirement. Unexpected character.
- invalid stuff that won't parse
- ~
-Task test echo 1
-1