summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/jsr/registry
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-10 13:22:13 -0700
committerGitHub <noreply@github.com>2024-02-10 20:22:13 +0000
commitf5e46c9bf2f50d66a953fa133161fc829cecff06 (patch)
tree8faf2f5831c1c7b11d842cd9908d141082c869a5 /cli/tests/testdata/jsr/registry
parentd2477f780630a812bfd65e3987b70c0d309385bb (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/jsr/registry')
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/add/1.0.0/mod.ts3
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/add/1.0.0_meta.json8
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/add/meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0/mod.ts7
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0_meta.json22
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/deps/meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts2
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json18
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json6
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/TestClass.ts1
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/mod.ts3
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0_meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/TestClass.ts1
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/mod.ts3
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1_meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/TestClass.ts1
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/mod.ts3
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0_meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/no_module_graph/meta.json7
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0/mod.ts17
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0_meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0/mod.ts12
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0_meta.json5
-rw-r--r--cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/meta.json5
26 files changed, 0 insertions, 164 deletions
diff --git a/cli/tests/testdata/jsr/registry/@denotest/add/1.0.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/add/1.0.0/mod.ts
deleted file mode 100644
index 8d9b8a22a..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/add/1.0.0/mod.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export function add(a: number, b: number): number {
- return a + b;
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/add/1.0.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/add/1.0.0_meta.json
deleted file mode 100644
index 6eebe2198..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/add/1.0.0_meta.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts"
- },
- "moduleGraph1": {
- "/mod.ts": {}
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/add/meta.json b/cli/tests/testdata/jsr/registry/@denotest/add/meta.json
deleted file mode 100644
index 02601e4d0..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/add/meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "versions": {
- "1.0.0": {}
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0/mod.ts
deleted file mode 100644
index 4ba0d8aaf..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0/mod.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { Other } from "jsr:@denotest/module_graph@1/other";
-import version from "jsr:@denotest/no_module_graph@^0.1";
-
-export default {
- version,
- other: new Other(),
-};
diff --git a/cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0_meta.json
deleted file mode 100644
index 914e4bd73..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/deps/1.0.0_meta.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts"
- },
- "moduleGraph1": {
- "/mod.ts": {
- "dependencies": [{
- "type": "static",
- "kind": "import",
- "range": [[0, 0], [0, 59]],
- "specifier": "jsr:@denotest/module_graph@1/other",
- "specifierRange": [[0, 22], [0, 58]]
- }, {
- "type": "static",
- "kind": "import",
- "range": [[1, 0], [1, 57]],
- "specifier": "jsr:@denotest/no_module_graph@^0.1",
- "specifierRange": [[1, 20], [1, 56]]
- }]
- }
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/deps/meta.json b/cli/tests/testdata/jsr/registry/@denotest/deps/meta.json
deleted file mode 100644
index 02601e4d0..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/deps/meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "versions": {
- "1.0.0": {}
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts
deleted file mode 100644
index cb3c4a5e0..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/mod.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { Other } from "./other.ts";
-
-export class Test {
- other = new Other();
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts
deleted file mode 100644
index 57e436cf8..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0/other.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export class Other {
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json
deleted file mode 100644
index ff105b58a..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts",
- "./other": "./other.ts"
- },
- "moduleGraph1": {
- "/mod.ts": {
- "dependencies": [{
- "kind": "import",
- "type": "static",
- "range": [[0, 0], [0, 35]],
- "specifier": "./other.ts",
- "specifierRange": [[0, 22], [0, 34]]
- }]
- },
- "/other.ts": {}
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json b/cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json
deleted file mode 100644
index 9a450c08b..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/module_graph/meta.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "versions": {
- "1.0.0": {},
- "1.4.0": {}
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/TestClass.ts b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/TestClass.ts
deleted file mode 100644
index 88ac04c12..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/TestClass.ts
+++ /dev/null
@@ -1 +0,0 @@
-export default class TestClass {}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/mod.ts
deleted file mode 100644
index 57600eb4b..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0/mod.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export default "0.1.0";
-
-export { default as TestClass } from "./TestClass.ts";
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0_meta.json
deleted file mode 100644
index 631a18d0e..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.0_meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts"
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/TestClass.ts b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/TestClass.ts
deleted file mode 100644
index 88ac04c12..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/TestClass.ts
+++ /dev/null
@@ -1 +0,0 @@
-export default class TestClass {}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/mod.ts
deleted file mode 100644
index 5e1fd9435..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1/mod.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export default "0.1.1";
-
-export { default as TestClass } from "./TestClass.ts";
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1_meta.json b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1_meta.json
deleted file mode 100644
index 631a18d0e..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.1.1_meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts"
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/TestClass.ts b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/TestClass.ts
deleted file mode 100644
index 88ac04c12..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/TestClass.ts
+++ /dev/null
@@ -1 +0,0 @@
-export default class TestClass {}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/mod.ts
deleted file mode 100644
index edf9622fb..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0/mod.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export default "0.2.0";
-
-export { default as TestClass } from "./TestClass.ts";
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0_meta.json
deleted file mode 100644
index 631a18d0e..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/0.2.0_meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts"
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/meta.json b/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/meta.json
deleted file mode 100644
index 0268b6c8a..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/no_module_graph/meta.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "versions": {
- "0.1.0": {},
- "0.1.1": {},
- "0.2.0": {}
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0/mod.ts
deleted file mode 100644
index e81b2309a..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0/mod.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-// add some statements that will be removed by the subset
-// type graph so that we can test that the source map works
-console.log(1);
-console.log(2);
-console.log(3);
-
-export class Foo {
- method(): number {
- return Math.random();
- }
-}
-
-// this won't be type checked against because the subset
-// type graph omit this code because it's not part of the
-// public API.
-const invalidTypeCheck: number = "";
-console.log(invalidTypeCheck);
diff --git a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0_meta.json
deleted file mode 100644
index 631a18d0e..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/0.1.0_meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts"
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/meta.json b/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/meta.json
deleted file mode 100644
index d10aa5c3a..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph/meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "versions": {
- "0.1.0": {}
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0/mod.ts b/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0/mod.ts
deleted file mode 100644
index 6a5036bf5..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0/mod.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-export class Foo {
- method() {
- return Math.random();
- }
-}
-
-// This will be analyzed because the method above is missing an
-// explicit type which is required for the subset type graph to take
-// effect. So the entire source file will be type checked against,
-// causing a type error here.
-const invalidTypeCheck: number = "";
-console.log(invalidTypeCheck);
diff --git a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0_meta.json b/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0_meta.json
deleted file mode 100644
index 631a18d0e..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/0.1.0_meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "exports": {
- ".": "./mod.ts"
- }
-}
diff --git a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/meta.json b/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/meta.json
deleted file mode 100644
index d10aa5c3a..000000000
--- a/cli/tests/testdata/jsr/registry/@denotest/subset_type_graph_invalid/meta.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "versions": {
- "0.1.0": {}
- }
-}