summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/ignore.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-09-06 14:17:33 +0200
committerGitHub <noreply@github.com>2023-09-06 14:17:33 +0200
commit147c845c95bfd55548d5b5b56d70f0a616410e0d (patch)
tree29b48080ebf971533b99423f8986b30269093efe /cli/tests/testdata/test/ignore.ts
parent9befa566ec3ef4594fd7ffb2cbdf5b34d9705e16 (diff)
feat(test): Add Deno.test.ignore and Deno.test.only (#20365)
Closes https://github.com/denoland/deno/issues/17106
Diffstat (limited to 'cli/tests/testdata/test/ignore.ts')
-rw-r--r--cli/tests/testdata/test/ignore.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/cli/tests/testdata/test/ignore.ts b/cli/tests/testdata/test/ignore.ts
index 01113a129..2339835db 100644
--- a/cli/tests/testdata/test/ignore.ts
+++ b/cli/tests/testdata/test/ignore.ts
@@ -1,4 +1,4 @@
-for (let i = 0; i < 10; i++) {
+for (let i = 0; i < 5; i++) {
Deno.test({
name: `test ${i}`,
ignore: true,
@@ -7,3 +7,11 @@ for (let i = 0; i < 10; i++) {
},
});
}
+for (let i = 5; i < 10; i++) {
+ Deno.test.ignore({
+ name: `test ${i}`,
+ fn() {
+ throw new Error("unreachable");
+ },
+ });
+}