summaryrefslogtreecommitdiff
path: root/tests/specs/test/filter
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/test/filter')
-rw-r--r--tests/specs/test/filter/__test__.jsonc5
-rw-r--r--tests/specs/test/filter/filter/a_test.ts3
-rw-r--r--tests/specs/test/filter/filter/b_test.ts3
-rw-r--r--tests/specs/test/filter/filter/c_test.ts3
-rw-r--r--tests/specs/test/filter/main.out12
5 files changed, 26 insertions, 0 deletions
diff --git a/tests/specs/test/filter/__test__.jsonc b/tests/specs/test/filter/__test__.jsonc
new file mode 100644
index 000000000..b7c1bb9fe
--- /dev/null
+++ b/tests/specs/test/filter/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "test --filter=foo filter",
+ "exitCode": 0,
+ "output": "main.out"
+}
diff --git a/tests/specs/test/filter/filter/a_test.ts b/tests/specs/test/filter/filter/a_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/tests/specs/test/filter/filter/a_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/tests/specs/test/filter/filter/b_test.ts b/tests/specs/test/filter/filter/b_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/tests/specs/test/filter/filter/b_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/tests/specs/test/filter/filter/c_test.ts b/tests/specs/test/filter/filter/c_test.ts
new file mode 100644
index 000000000..a3f32968a
--- /dev/null
+++ b/tests/specs/test/filter/filter/c_test.ts
@@ -0,0 +1,3 @@
+Deno.test("foo", function () {});
+Deno.test("bar", function () {});
+Deno.test("baz", function () {});
diff --git a/tests/specs/test/filter/main.out b/tests/specs/test/filter/main.out
new file mode 100644
index 000000000..605214b8e
--- /dev/null
+++ b/tests/specs/test/filter/main.out
@@ -0,0 +1,12 @@
+Check [WILDCARD]/filter/a_test.ts
+Check [WILDCARD]/filter/b_test.ts
+Check [WILDCARD]/filter/c_test.ts
+running 1 test from [WILDCARD]/filter/a_test.ts
+foo ... ok ([WILDCARD])
+running 1 test from [WILDCARD]/filter/b_test.ts
+foo ... ok ([WILDCARD])
+running 1 test from [WILDCARD]/filter/c_test.ts
+foo ... ok ([WILDCARD])
+
+ok | 3 passed | 0 failed | 6 filtered out ([WILDCARD])
+