summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-08-02 15:18:59 +0200
committerGitHub <noreply@github.com>2024-08-02 13:18:59 +0000
commit84ff4182652d55c52391542000d8bb3ad22a4935 (patch)
tree80664ddb88d85061b9ad7b5856cc6404597f2c9b /tests
parent124a13280e3d71ed14ef0899b7bfd012f82ceb6e (diff)
feat(test): rename --allow-none to --permit-no-files (#24809)
Diffstat (limited to 'tests')
-rw-r--r--tests/specs/test/no_files/__test__.jsonc19
-rw-r--r--tests/specs/test/no_files/allow_none.out5
-rw-r--r--tests/specs/test/no_files/error.out1
-rw-r--r--tests/specs/test/no_files/permit_no_files.out3
4 files changed, 28 insertions, 0 deletions
diff --git a/tests/specs/test/no_files/__test__.jsonc b/tests/specs/test/no_files/__test__.jsonc
new file mode 100644
index 000000000..0bb252ec7
--- /dev/null
+++ b/tests/specs/test/no_files/__test__.jsonc
@@ -0,0 +1,19 @@
+{
+ "tests": {
+ "error": {
+ "args": "test",
+ "output": "error.out",
+ "exitCode": 1
+ },
+ "permit_no_files": {
+ "args": "test --permit-no-files",
+ "output": "permit_no_files.out",
+ "exitCode": 0
+ },
+ "allow_none": {
+ "args": "test --allow-none",
+ "output": "allow_none.out",
+ "exitCode": 0
+ }
+ }
+}
diff --git a/tests/specs/test/no_files/allow_none.out b/tests/specs/test/no_files/allow_none.out
new file mode 100644
index 000000000..1cc973bb5
--- /dev/null
+++ b/tests/specs/test/no_files/allow_none.out
@@ -0,0 +1,5 @@
+⚠️ The `--allow-none` flag is deprecated and will be removed in Deno 2.0.
+Use the `--permit-no-files` flag instead.
+
+ok | 0 passed | 0 failed (0ms)
+
diff --git a/tests/specs/test/no_files/error.out b/tests/specs/test/no_files/error.out
new file mode 100644
index 000000000..2878f641a
--- /dev/null
+++ b/tests/specs/test/no_files/error.out
@@ -0,0 +1 @@
+error: No test modules found
diff --git a/tests/specs/test/no_files/permit_no_files.out b/tests/specs/test/no_files/permit_no_files.out
new file mode 100644
index 000000000..228425d10
--- /dev/null
+++ b/tests/specs/test/no_files/permit_no_files.out
@@ -0,0 +1,3 @@
+
+ok | 0 passed | 0 failed (0ms)
+