summaryrefslogtreecommitdiff
path: root/tests/specs/check/check_with_exclude_option_by_glob
diff options
context:
space:
mode:
authorMohammad Sulaiman <mohammad.sulaiman@exalt.ps>2024-10-02 12:22:35 +0300
committerGitHub <noreply@github.com>2024-10-02 09:22:35 +0000
commit3c193aef98bea6b3e0c9592cfdb43268e7a7e4af (patch)
treeadbf9730a91c0f692a633f028d8066819e37ab94 /tests/specs/check/check_with_exclude_option_by_glob
parentd116709d064ce85922f1fd635d5915b4659c83d5 (diff)
chore: deprecate check itests (#25963)
Diffstat (limited to 'tests/specs/check/check_with_exclude_option_by_glob')
-rw-r--r--tests/specs/check/check_with_exclude_option_by_glob/__test__.jsonc5
-rw-r--r--tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_dir.json5
-rw-r--r--tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_glob.json5
-rw-r--r--tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.json3
-rw-r--r--tests/specs/check/check_with_exclude_option_by_glob/exclude_option/exclude_option.ts.error.out4
-rw-r--r--tests/specs/check/check_with_exclude_option_by_glob/exclude_option/ignored/index.ts1
-rw-r--r--tests/specs/check/check_with_exclude_option_by_glob/exclude_option/index.ts5
7 files changed, 28 insertions, 0 deletions
diff --git a/tests/specs/check/check_with_exclude_option_by_glob/__test__.jsonc b/tests/specs/check/check_with_exclude_option_by_glob/__test__.jsonc
new file mode 100644
index 000000000..54700ca3d
--- /dev/null
+++ b/tests/specs/check/check_with_exclude_option_by_glob/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "check --quiet --config exclude_option/deno.exclude_glob.json exclude_option/ignored/index.ts",
+ "output": "",
+ "exitCode": 0
+}
diff --git a/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_dir.json b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_dir.json
new file mode 100644
index 000000000..2019f8953
--- /dev/null
+++ b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_dir.json
@@ -0,0 +1,5 @@
+{
+ "exclude": [
+ "ignored"
+ ]
+}
diff --git a/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_glob.json b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_glob.json
new file mode 100644
index 000000000..1d203ba08
--- /dev/null
+++ b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_glob.json
@@ -0,0 +1,5 @@
+{
+ "exclude": [
+ "ignored/**/*"
+ ]
+}
diff --git a/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.json b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.json
new file mode 100644
index 000000000..a9eca74ca
--- /dev/null
+++ b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.json
@@ -0,0 +1,3 @@
+{
+ "exclude": []
+}
diff --git a/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/exclude_option.ts.error.out b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/exclude_option.ts.error.out
new file mode 100644
index 000000000..abd1c1258
--- /dev/null
+++ b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/exclude_option.ts.error.out
@@ -0,0 +1,4 @@
+error: TS2304 [ERROR]: Cannot find name 'nothing'.
+export { nothing };
+ ~~~~~~~
+ at [WILDCARD]
diff --git a/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/ignored/index.ts b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/ignored/index.ts
new file mode 100644
index 000000000..0419cf073
--- /dev/null
+++ b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/ignored/index.ts
@@ -0,0 +1 @@
+export { nothing };
diff --git a/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/index.ts b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/index.ts
new file mode 100644
index 000000000..8335ca3a2
--- /dev/null
+++ b/tests/specs/check/check_with_exclude_option_by_glob/exclude_option/index.ts
@@ -0,0 +1,5 @@
+import { nothing } from "./ignored/index.ts";
+
+const foo = 1;
+
+export { foo, nothing };