summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/no_prompt.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/no_prompt.ts')
-rw-r--r--cli/tests/testdata/no_prompt.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/testdata/no_prompt.ts b/cli/tests/testdata/no_prompt.ts
new file mode 100644
index 000000000..88dccc458
--- /dev/null
+++ b/cli/tests/testdata/no_prompt.ts
@@ -0,0 +1,10 @@
+new Worker("data:,setTimeout(() => Deno.exit(2), 200)", {
+ type: "module",
+ deno: { namespace: true },
+});
+
+try {
+ await Deno.run({ cmd: ["ps"] });
+} catch {
+ Deno.exit(0);
+}