diff options
| author | Matt Mastracci <matthew@mastracci.com> | 2024-02-10 13:22:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-10 20:22:13 +0000 |
| commit | f5e46c9bf2f50d66a953fa133161fc829cecff06 (patch) | |
| tree | 8faf2f5831c1c7b11d842cd9908d141082c869a5 /cli/tests/testdata/package_json/basic | |
| parent | d2477f780630a812bfd65e3987b70c0d309385bb (diff) | |
chore: move cli/tests/ -> tests/ (#22369)
This looks like a massive PR, but it's only a move from cli/tests ->
tests, and updates of relative paths for files.
This is the first step towards aggregate all of the integration test
files under tests/, which will lead to a set of integration tests that
can run without the CLI binary being built.
While we could leave these tests under `cli`, it would require us to
keep a more complex directory structure for the various test runners. In
addition, we have a lot of complexity to ignore various test files in
the `cli` project itself (cargo publish exclusion rules, autotests =
false, etc).
And finally, the `tests/` folder will eventually house the `test_ffi`,
`test_napi` and other testing code, reducing the size of the root repo
directory.
For easier review, the extremely large and noisy "move" is in the first
commit (with no changes -- just a move), while the remainder of the
changes to actual files is in the second commit.
Diffstat (limited to 'cli/tests/testdata/package_json/basic')
12 files changed, 0 insertions, 73 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": "*" - } -} |
