summaryrefslogtreecommitdiff
path: root/tests/testdata/test/collect
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 /tests/testdata/test/collect
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 'tests/testdata/test/collect')
-rw-r--r--tests/testdata/test/collect/deno.deprecated.jsonc7
-rw-r--r--tests/testdata/test/collect/deno.jsonc5
-rw-r--r--tests/testdata/test/collect/deno.malformed.jsonc5
-rw-r--r--tests/testdata/test/collect/deno2.jsonc6
-rw-r--r--tests/testdata/test/collect/ignore/test.ts1
-rw-r--r--tests/testdata/test/collect/include.ts0
-rw-r--r--tests/testdata/test/collect/include/2_test.ts0
-rw-r--r--tests/testdata/test/collect/include/test.ts0
-rw-r--r--tests/testdata/test/collect/test.ts0
9 files changed, 24 insertions, 0 deletions
diff --git a/tests/testdata/test/collect/deno.deprecated.jsonc b/tests/testdata/test/collect/deno.deprecated.jsonc
new file mode 100644
index 000000000..b8acda27d
--- /dev/null
+++ b/tests/testdata/test/collect/deno.deprecated.jsonc
@@ -0,0 +1,7 @@
+{
+ "test": {
+ "files": {
+ "exclude": ["./ignore"]
+ }
+ }
+}
diff --git a/tests/testdata/test/collect/deno.jsonc b/tests/testdata/test/collect/deno.jsonc
new file mode 100644
index 000000000..e14ce86da
--- /dev/null
+++ b/tests/testdata/test/collect/deno.jsonc
@@ -0,0 +1,5 @@
+{
+ "test": {
+ "exclude": ["./ignore"]
+ }
+}
diff --git a/tests/testdata/test/collect/deno.malformed.jsonc b/tests/testdata/test/collect/deno.malformed.jsonc
new file mode 100644
index 000000000..f2d8cbc65
--- /dev/null
+++ b/tests/testdata/test/collect/deno.malformed.jsonc
@@ -0,0 +1,5 @@
+{
+ "test": {
+ "dont_know_this_field": {}
+ }
+}
diff --git a/tests/testdata/test/collect/deno2.jsonc b/tests/testdata/test/collect/deno2.jsonc
new file mode 100644
index 000000000..b7af09d1c
--- /dev/null
+++ b/tests/testdata/test/collect/deno2.jsonc
@@ -0,0 +1,6 @@
+{
+ "test": {
+ "include": ["./include/"],
+ "exclude": ["./ignore", "./include/2_test.ts"]
+ }
+}
diff --git a/tests/testdata/test/collect/ignore/test.ts b/tests/testdata/test/collect/ignore/test.ts
new file mode 100644
index 000000000..16fb63ba7
--- /dev/null
+++ b/tests/testdata/test/collect/ignore/test.ts
@@ -0,0 +1 @@
+throw new Error("this module should be ignored");
diff --git a/tests/testdata/test/collect/include.ts b/tests/testdata/test/collect/include.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/testdata/test/collect/include.ts
diff --git a/tests/testdata/test/collect/include/2_test.ts b/tests/testdata/test/collect/include/2_test.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/testdata/test/collect/include/2_test.ts
diff --git a/tests/testdata/test/collect/include/test.ts b/tests/testdata/test/collect/include/test.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/testdata/test/collect/include/test.ts
diff --git a/tests/testdata/test/collect/test.ts b/tests/testdata/test/collect/test.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/testdata/test/collect/test.ts