summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/fmt_tests.rs92
-rw-r--r--cli/tests/integration/lint_tests.rs95
-rw-r--r--cli/tests/integration/test_tests.rs58
-rw-r--r--cli/tests/testdata/fmt/deno.glob.json11
-rw-r--r--cli/tests/testdata/fmt/glob/data/tes.ts3
-rw-r--r--cli/tests/testdata/fmt/glob/data/test1.js2
-rw-r--r--cli/tests/testdata/fmt/glob/data/test1.ts2
-rw-r--r--cli/tests/testdata/fmt/glob/data/test12.ts3
-rw-r--r--cli/tests/testdata/fmt/glob/nested/fizz/bar.ts2
-rw-r--r--cli/tests/testdata/fmt/glob/nested/fizz/bazz.ts3
-rw-r--r--cli/tests/testdata/fmt/glob/nested/fizz/fizz.ts2
-rw-r--r--cli/tests/testdata/fmt/glob/nested/fizz/foo.ts2
-rw-r--r--cli/tests/testdata/fmt/glob/nested/foo/bar.ts2
-rw-r--r--cli/tests/testdata/fmt/glob/nested/foo/bazz.ts3
-rw-r--r--cli/tests/testdata/fmt/glob/nested/foo/fizz.ts2
-rw-r--r--cli/tests/testdata/fmt/glob/nested/foo/foo.ts2
-rw-r--r--cli/tests/testdata/fmt/glob/pages/[id].ts2
-rw-r--r--cli/tests/testdata/lint/deno.glob.json11
-rw-r--r--cli/tests/testdata/lint/glob/data/tes.ts3
-rw-r--r--cli/tests/testdata/lint/glob/data/test1.js3
-rw-r--r--cli/tests/testdata/lint/glob/data/test1.ts3
-rw-r--r--cli/tests/testdata/lint/glob/data/test12.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/bar.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/bazz.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/fizz.ts2
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/foo.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/bar.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/bazz.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/fizz.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/foo.ts3
-rw-r--r--cli/tests/testdata/lint/glob/pages/[id].ts3
-rw-r--r--cli/tests/testdata/test/deno.glob.json11
-rw-r--r--cli/tests/testdata/test/glob/data/tes.ts3
-rw-r--r--cli/tests/testdata/test/glob/data/test1.js3
-rw-r--r--cli/tests/testdata/test/glob/data/test1.ts3
-rw-r--r--cli/tests/testdata/test/glob/data/test12.ts3
-rw-r--r--cli/tests/testdata/test/glob/nested/fizz/bar.ts3
-rw-r--r--cli/tests/testdata/test/glob/nested/fizz/bazz.ts3
-rw-r--r--cli/tests/testdata/test/glob/nested/fizz/fizz.ts2
-rw-r--r--cli/tests/testdata/test/glob/nested/fizz/foo.ts3
-rw-r--r--cli/tests/testdata/test/glob/nested/foo/bar.ts3
-rw-r--r--cli/tests/testdata/test/glob/nested/foo/bazz.ts3
-rw-r--r--cli/tests/testdata/test/glob/nested/foo/fizz.ts3
-rw-r--r--cli/tests/testdata/test/glob/nested/foo/foo.ts3
-rw-r--r--cli/tests/testdata/test/glob/pages/[id].ts3
45 files changed, 384 insertions, 0 deletions
diff --git a/cli/tests/integration/fmt_tests.rs b/cli/tests/integration/fmt_tests.rs
index e47311cf0..e674f4a52 100644
--- a/cli/tests/integration/fmt_tests.rs
+++ b/cli/tests/integration/fmt_tests.rs
@@ -2,7 +2,9 @@
use test_util as util;
use test_util::TempDir;
+use util::assert_contains;
use util::TestContext;
+use util::TestContextBuilder;
#[test]
fn fmt_test() {
@@ -257,3 +259,93 @@ itest!(fmt_with_malformed_config2 {
output: "fmt/fmt_with_malformed_config2.out",
exit_code: 1,
});
+
+#[test]
+fn fmt_with_glob_config() {
+ let context = TestContextBuilder::new().cwd("fmt").build();
+
+ let cmd_output = context
+ .new_command()
+ .args("fmt --check --config deno.glob.json")
+ .run();
+
+ cmd_output.assert_exit_code(1);
+
+ let output = cmd_output.combined_output();
+ if cfg!(windows) {
+ assert_contains!(output, r#"glob\nested\fizz\fizz.ts"#);
+ assert_contains!(output, r#"glob\pages\[id].ts"#);
+ assert_contains!(output, r#"glob\nested\fizz\bar.ts"#);
+ assert_contains!(output, r#"glob\nested\foo\foo.ts"#);
+ assert_contains!(output, r#"glob\data\test1.js"#);
+ assert_contains!(output, r#"glob\nested\foo\bar.ts"#);
+ assert_contains!(output, r#"glob\nested\foo\fizz.ts"#);
+ assert_contains!(output, r#"glob\nested\fizz\foo.ts"#);
+ assert_contains!(output, r#"glob\data\test1.ts"#);
+ } else {
+ assert_contains!(output, "glob/nested/fizz/fizz.ts");
+ assert_contains!(output, "glob/pages/[id].ts");
+ assert_contains!(output, "glob/nested/fizz/bar.ts");
+ assert_contains!(output, "glob/nested/foo/foo.ts");
+ assert_contains!(output, "glob/data/test1.js");
+ assert_contains!(output, "glob/nested/foo/bar.ts");
+ assert_contains!(output, "glob/nested/foo/fizz.ts");
+ assert_contains!(output, "glob/nested/fizz/foo.ts");
+ assert_contains!(output, "glob/data/test1.ts");
+ }
+
+ assert_contains!(output, "Found 9 not formatted files in 9 files");
+}
+
+#[test]
+fn fmt_with_glob_config_and_flags() {
+ let context = TestContextBuilder::new().cwd("fmt").build();
+
+ let cmd_output = context
+ .new_command()
+ .args("fmt --check --config deno.glob.json --ignore=glob/nested/**/bar.ts")
+ .run();
+
+ cmd_output.assert_exit_code(1);
+
+ let output = cmd_output.combined_output();
+ if cfg!(windows) {
+ assert_contains!(output, r#"glob\nested\fizz\fizz.ts"#);
+ assert_contains!(output, r#"glob\pages\[id].ts"#);
+ assert_contains!(output, r#"glob\nested\fizz\bazz.ts"#);
+ assert_contains!(output, r#"glob\nested\foo\foo.ts"#);
+ assert_contains!(output, r#"glob\data\test1.js"#);
+ assert_contains!(output, r#"glob\nested\foo\bazz.ts"#);
+ assert_contains!(output, r#"glob\nested\foo\fizz.ts"#);
+ assert_contains!(output, r#"glob\nested\fizz\foo.ts"#);
+ assert_contains!(output, r#"glob\data\test1.ts"#);
+ } else {
+ assert_contains!(output, "glob/nested/fizz/fizz.ts");
+ assert_contains!(output, "glob/pages/[id].ts");
+ assert_contains!(output, "glob/nested/fizz/bazz.ts");
+ assert_contains!(output, "glob/nested/foo/foo.ts");
+ assert_contains!(output, "glob/data/test1.js");
+ assert_contains!(output, "glob/nested/foo/bazz.ts");
+ assert_contains!(output, "glob/nested/foo/fizz.ts");
+ assert_contains!(output, "glob/nested/fizz/foo.ts");
+ assert_contains!(output, "glob/data/test1.ts");
+ }
+ assert_contains!(output, "Found 9 not formatted files in 9 files");
+ let cmd_output = context
+ .new_command()
+ .args("fmt --check --config deno.glob.json glob/data/test1.?s")
+ .run();
+
+ cmd_output.assert_exit_code(1);
+
+ let output = cmd_output.combined_output();
+ if cfg!(windows) {
+ assert_contains!(output, r#"glob\data\test1.js"#);
+ assert_contains!(output, r#"glob\data\test1.ts"#);
+ } else {
+ assert_contains!(output, "glob/data/test1.js");
+ assert_contains!(output, "glob/data/test1.ts");
+ }
+
+ assert_contains!(output, "Found 2 not formatted files in 2 files");
+}
diff --git a/cli/tests/integration/lint_tests.rs b/cli/tests/integration/lint_tests.rs
index 8bf35ed8f..6fef3c000 100644
--- a/cli/tests/integration/lint_tests.rs
+++ b/cli/tests/integration/lint_tests.rs
@@ -1,5 +1,8 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+use test_util::assert_contains;
+use test_util::TestContextBuilder;
+
itest!(ignore_unexplicit_files {
args: "lint --unstable --ignore=./",
output_str: Some("error: No target files found.\n"),
@@ -114,3 +117,95 @@ itest!(lint_with_malformed_config2 {
output: "lint/with_malformed_config2.out",
exit_code: 1,
});
+
+#[test]
+fn lint_with_glob_config() {
+ let context = TestContextBuilder::new().cwd("lint").build();
+
+ let cmd_output = context
+ .new_command()
+ .args("lint --config deno.glob.json")
+ .run();
+
+ cmd_output.assert_exit_code(1);
+
+ let output = cmd_output.combined_output();
+ if cfg!(windows) {
+ assert_contains!(output, r#"glob\nested\fizz\fizz.ts:1:10"#);
+ assert_contains!(output, r#"glob\pages\[id].ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\fizz\bar.ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\foo\foo.ts:1:10"#);
+ assert_contains!(output, r#"glob\data\test1.js:1:10"#);
+ assert_contains!(output, r#"glob\nested\foo\bar.ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\foo\fizz.ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\fizz\foo.ts:1:10"#);
+ assert_contains!(output, r#"glob\data\test1.ts:1:10"#);
+ } else {
+ assert_contains!(output, "glob/nested/fizz/fizz.ts:1:10");
+ assert_contains!(output, "glob/pages/[id].ts:1:10");
+ assert_contains!(output, "glob/nested/fizz/bar.ts:1:10");
+ assert_contains!(output, "glob/nested/foo/foo.ts:1:10");
+ assert_contains!(output, "glob/data/test1.js:1:10");
+ assert_contains!(output, "glob/nested/foo/bar.ts:1:10");
+ assert_contains!(output, "glob/nested/foo/fizz.ts:1:10");
+ assert_contains!(output, "glob/nested/fizz/foo.ts:1:10");
+ assert_contains!(output, "glob/data/test1.ts:1:10");
+ }
+ assert_contains!(output, "Found 9 problems");
+ assert_contains!(output, "Checked 9 files");
+}
+
+#[test]
+fn lint_with_glob_config_and_flags() {
+ let context = TestContextBuilder::new().cwd("lint").build();
+
+ let cmd_output = context
+ .new_command()
+ .args("lint --config deno.glob.json --ignore=glob/nested/**/bar.ts")
+ .run();
+
+ cmd_output.assert_exit_code(1);
+
+ let output = cmd_output.combined_output();
+ if cfg!(windows) {
+ assert_contains!(output, r#"glob\nested\fizz\fizz.ts:1:10"#);
+ assert_contains!(output, r#"glob\pages\[id].ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\fizz\bazz.ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\foo\foo.ts:1:10"#);
+ assert_contains!(output, r#"glob\data\test1.js:1:10"#);
+ assert_contains!(output, r#"glob\nested\foo\bazz.ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\foo\fizz.ts:1:10"#);
+ assert_contains!(output, r#"glob\nested\fizz\foo.ts:1:10"#);
+ assert_contains!(output, r#"glob\data\test1.ts:1:10"#);
+ } else {
+ assert_contains!(output, "glob/nested/fizz/fizz.ts:1:10");
+ assert_contains!(output, "glob/pages/[id].ts:1:10");
+ assert_contains!(output, "glob/nested/fizz/bazz.ts:1:10");
+ assert_contains!(output, "glob/nested/foo/foo.ts:1:10");
+ assert_contains!(output, "glob/data/test1.js:1:10");
+ assert_contains!(output, "glob/nested/foo/bazz.ts:1:10");
+ assert_contains!(output, "glob/nested/foo/fizz.ts:1:10");
+ assert_contains!(output, "glob/nested/fizz/foo.ts:1:10");
+ assert_contains!(output, "glob/data/test1.ts:1:10");
+ }
+ assert_contains!(output, "Found 9 problems");
+ assert_contains!(output, "Checked 9 files");
+
+ let cmd_output = context
+ .new_command()
+ .args("lint --config deno.glob.json glob/data/test1.?s")
+ .run();
+
+ cmd_output.assert_exit_code(1);
+
+ let output = cmd_output.combined_output();
+ if cfg!(windows) {
+ assert_contains!(output, r#"glob\data\test1.js:1:10"#);
+ assert_contains!(output, r#"glob\data\test1.ts:1:10"#);
+ } else {
+ assert_contains!(output, "glob/data/test1.js:1:10");
+ assert_contains!(output, "glob/data/test1.ts:1:10");
+ }
+ assert_contains!(output, "Found 2 problems");
+ assert_contains!(output, "Checked 2 files");
+}
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs
index 04966f4ee..4dd29528f 100644
--- a/cli/tests/integration/test_tests.rs
+++ b/cli/tests/integration/test_tests.rs
@@ -6,6 +6,7 @@ use util::assert_contains;
use util::env_vars_for_npm_tests;
use util::wildcard_match;
use util::TestContext;
+use util::TestContextBuilder;
#[test]
fn no_color() {
@@ -508,3 +509,60 @@ itest!(test_no_lock {
cwd: Some("lockfile/basic"),
output: "lockfile/basic/test.nolock.out",
});
+
+#[test]
+fn test_with_glob_config() {
+ let context = TestContextBuilder::new().cwd("test").build();
+
+ let cmd_output = context
+ .new_command()
+ .args("test --config deno.glob.json")
+ .run();
+
+ cmd_output.assert_exit_code(0);
+
+ let output = cmd_output.combined_output();
+ assert_contains!(output, "glob/nested/fizz/fizz.ts");
+ assert_contains!(output, "glob/pages/[id].ts");
+ assert_contains!(output, "glob/nested/fizz/bar.ts");
+ assert_contains!(output, "glob/nested/foo/foo.ts");
+ assert_contains!(output, "glob/data/test1.js");
+ assert_contains!(output, "glob/nested/foo/bar.ts");
+ assert_contains!(output, "glob/nested/foo/fizz.ts");
+ assert_contains!(output, "glob/nested/fizz/foo.ts");
+ assert_contains!(output, "glob/data/test1.ts");
+}
+
+#[test]
+fn test_with_glob_config_and_flags() {
+ let context = TestContextBuilder::new().cwd("test").build();
+
+ let cmd_output = context
+ .new_command()
+ .args("test --config deno.glob.json --ignore=glob/nested/**/bar.ts")
+ .run();
+
+ cmd_output.assert_exit_code(0);
+
+ let output = cmd_output.combined_output();
+ assert_contains!(output, "glob/nested/fizz/fizz.ts");
+ assert_contains!(output, "glob/pages/[id].ts");
+ assert_contains!(output, "glob/nested/fizz/bazz.ts");
+ assert_contains!(output, "glob/nested/foo/foo.ts");
+ assert_contains!(output, "glob/data/test1.js");
+ assert_contains!(output, "glob/nested/foo/bazz.ts");
+ assert_contains!(output, "glob/nested/foo/fizz.ts");
+ assert_contains!(output, "glob/nested/fizz/foo.ts");
+ assert_contains!(output, "glob/data/test1.ts");
+
+ let cmd_output = context
+ .new_command()
+ .args("test --config deno.glob.json glob/data/test1.?s")
+ .run();
+
+ cmd_output.assert_exit_code(0);
+
+ let output = cmd_output.combined_output();
+ assert_contains!(output, "glob/data/test1.js");
+ assert_contains!(output, "glob/data/test1.ts");
+}
diff --git a/cli/tests/testdata/fmt/deno.glob.json b/cli/tests/testdata/fmt/deno.glob.json
new file mode 100644
index 000000000..ff74e9d2b
--- /dev/null
+++ b/cli/tests/testdata/fmt/deno.glob.json
@@ -0,0 +1,11 @@
+{
+ "fmt": {
+ "include": [
+ "glob/data/test1.?s",
+ "glob/nested/foo/*.ts",
+ "glob/nested/fizz/*.ts",
+ "glob/pages/[id].ts"
+ ],
+ "exclude": ["glob/nested/**/*bazz.ts"]
+ }
+}
diff --git a/cli/tests/testdata/fmt/glob/data/tes.ts b/cli/tests/testdata/fmt/glob/data/tes.ts
new file mode 100644
index 000000000..0127c4af3
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/data/tes.ts
@@ -0,0 +1,3 @@
+ function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/fmt/glob/data/test1.js b/cli/tests/testdata/fmt/glob/data/test1.js
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/data/test1.js
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/data/test1.ts b/cli/tests/testdata/fmt/glob/data/test1.ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/data/test1.ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/data/test12.ts b/cli/tests/testdata/fmt/glob/data/test12.ts
new file mode 100644
index 000000000..0127c4af3
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/data/test12.ts
@@ -0,0 +1,3 @@
+ function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/bar.ts b/cli/tests/testdata/fmt/glob/nested/fizz/bar.ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/fizz/bar.ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/bazz.ts b/cli/tests/testdata/fmt/glob/nested/fizz/bazz.ts
new file mode 100644
index 000000000..0127c4af3
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/fizz/bazz.ts
@@ -0,0 +1,3 @@
+ function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/fizz.ts b/cli/tests/testdata/fmt/glob/nested/fizz/fizz.ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/fizz/fizz.ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/nested/fizz/foo.ts b/cli/tests/testdata/fmt/glob/nested/fizz/foo.ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/fizz/foo.ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/nested/foo/bar.ts b/cli/tests/testdata/fmt/glob/nested/foo/bar.ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/foo/bar.ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/nested/foo/bazz.ts b/cli/tests/testdata/fmt/glob/nested/foo/bazz.ts
new file mode 100644
index 000000000..0127c4af3
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/foo/bazz.ts
@@ -0,0 +1,3 @@
+ function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/fmt/glob/nested/foo/fizz.ts b/cli/tests/testdata/fmt/glob/nested/foo/fizz.ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/foo/fizz.ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/nested/foo/foo.ts b/cli/tests/testdata/fmt/glob/nested/foo/foo.ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/nested/foo/foo.ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/fmt/glob/pages/[id].ts b/cli/tests/testdata/fmt/glob/pages/[id].ts
new file mode 100644
index 000000000..e939e4595
--- /dev/null
+++ b/cli/tests/testdata/fmt/glob/pages/[id].ts
@@ -0,0 +1,2 @@
+ function foo() {
+}
diff --git a/cli/tests/testdata/lint/deno.glob.json b/cli/tests/testdata/lint/deno.glob.json
new file mode 100644
index 000000000..f6781b0d8
--- /dev/null
+++ b/cli/tests/testdata/lint/deno.glob.json
@@ -0,0 +1,11 @@
+{
+ "lint": {
+ "include": [
+ "glob/data/test1.?s",
+ "glob/nested/foo/*.ts",
+ "glob/nested/fizz/*.ts",
+ "glob/pages/[id].ts"
+ ],
+ "exclude": ["glob/nested/**/*bazz.ts"]
+ }
+}
diff --git a/cli/tests/testdata/lint/glob/data/tes.ts b/cli/tests/testdata/lint/glob/data/tes.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/data/tes.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/data/test1.js b/cli/tests/testdata/lint/glob/data/test1.js
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/data/test1.js
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/data/test1.ts b/cli/tests/testdata/lint/glob/data/test1.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/data/test1.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/data/test12.ts b/cli/tests/testdata/lint/glob/data/test12.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/data/test12.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/bar.ts b/cli/tests/testdata/lint/glob/nested/fizz/bar.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/fizz/bar.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/bazz.ts b/cli/tests/testdata/lint/glob/nested/fizz/bazz.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/fizz/bazz.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/fizz.ts b/cli/tests/testdata/lint/glob/nested/fizz/fizz.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/fizz/fizz.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/foo.ts b/cli/tests/testdata/lint/glob/nested/fizz/foo.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/fizz/foo.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/bar.ts b/cli/tests/testdata/lint/glob/nested/foo/bar.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/foo/bar.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/bazz.ts b/cli/tests/testdata/lint/glob/nested/foo/bazz.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/foo/bazz.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/fizz.ts b/cli/tests/testdata/lint/glob/nested/foo/fizz.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/foo/fizz.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/foo.ts b/cli/tests/testdata/lint/glob/nested/foo/foo.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/nested/foo/foo.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/pages/[id].ts b/cli/tests/testdata/lint/glob/pages/[id].ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/lint/glob/pages/[id].ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/deno.glob.json b/cli/tests/testdata/test/deno.glob.json
new file mode 100644
index 000000000..9deb4d2f2
--- /dev/null
+++ b/cli/tests/testdata/test/deno.glob.json
@@ -0,0 +1,11 @@
+{
+ "test": {
+ "include": [
+ "glob/data/test1.?s",
+ "glob/nested/foo/*.ts",
+ "glob/nested/fizz/*.ts",
+ "glob/pages/[id].ts"
+ ],
+ "exclude": ["glob/nested/**/*bazz.ts"]
+ }
+}
diff --git a/cli/tests/testdata/test/glob/data/tes.ts b/cli/tests/testdata/test/glob/data/tes.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/data/tes.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/data/test1.js b/cli/tests/testdata/test/glob/data/test1.js
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/data/test1.js
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/data/test1.ts b/cli/tests/testdata/test/glob/data/test1.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/data/test1.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/data/test12.ts b/cli/tests/testdata/test/glob/data/test12.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/data/test12.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/nested/fizz/bar.ts b/cli/tests/testdata/test/glob/nested/fizz/bar.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/fizz/bar.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/nested/fizz/bazz.ts b/cli/tests/testdata/test/glob/nested/fizz/bazz.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/fizz/bazz.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/nested/fizz/fizz.ts b/cli/tests/testdata/test/glob/nested/fizz/fizz.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/fizz/fizz.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/cli/tests/testdata/test/glob/nested/fizz/foo.ts b/cli/tests/testdata/test/glob/nested/fizz/foo.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/fizz/foo.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/nested/foo/bar.ts b/cli/tests/testdata/test/glob/nested/foo/bar.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/foo/bar.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/nested/foo/bazz.ts b/cli/tests/testdata/test/glob/nested/foo/bazz.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/foo/bazz.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/nested/foo/fizz.ts b/cli/tests/testdata/test/glob/nested/foo/fizz.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/foo/fizz.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/nested/foo/foo.ts b/cli/tests/testdata/test/glob/nested/foo/foo.ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/nested/foo/foo.ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file
diff --git a/cli/tests/testdata/test/glob/pages/[id].ts b/cli/tests/testdata/test/glob/pages/[id].ts
new file mode 100644
index 000000000..26f07fba5
--- /dev/null
+++ b/cli/tests/testdata/test/glob/pages/[id].ts
@@ -0,0 +1,3 @@
+function foo() {
+
+} \ No newline at end of file