diff options
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/run/run_task/__test__.jsonc | 13 | ||||
-rw-r--r-- | tests/specs/run/run_task/deno.json | 5 | ||||
-rw-r--r-- | tests/specs/run/run_task/main.out | 2 | ||||
-rw-r--r-- | tests/specs/run/run_task/main.ts | 1 | ||||
-rw-r--r-- | tests/specs/run/run_task/not_found.out | 1 |
5 files changed, 22 insertions, 0 deletions
diff --git a/tests/specs/run/run_task/__test__.jsonc b/tests/specs/run/run_task/__test__.jsonc new file mode 100644 index 000000000..0d1c82efd --- /dev/null +++ b/tests/specs/run/run_task/__test__.jsonc @@ -0,0 +1,13 @@ +{ + "tests": { + "deno_run_task": { + "args": "run main", + "output": "main.out" + }, + "deno_run_module_task_not_found": { + "args": "run not_found", + "output": "not_found.out", + "exitCode": 1 + } + } +} diff --git a/tests/specs/run/run_task/deno.json b/tests/specs/run/run_task/deno.json new file mode 100644 index 000000000..54772504e --- /dev/null +++ b/tests/specs/run/run_task/deno.json @@ -0,0 +1,5 @@ +{ + "tasks": { + "main": "deno run main.ts" + } +} diff --git a/tests/specs/run/run_task/main.out b/tests/specs/run/run_task/main.out new file mode 100644 index 000000000..f946c4a79 --- /dev/null +++ b/tests/specs/run/run_task/main.out @@ -0,0 +1,2 @@ +Task main deno run main.ts +main diff --git a/tests/specs/run/run_task/main.ts b/tests/specs/run/run_task/main.ts new file mode 100644 index 000000000..6c2ee34f3 --- /dev/null +++ b/tests/specs/run/run_task/main.ts @@ -0,0 +1 @@ +console.log("main"); diff --git a/tests/specs/run/run_task/not_found.out b/tests/specs/run/run_task/not_found.out new file mode 100644 index 000000000..5d3bba059 --- /dev/null +++ b/tests/specs/run/run_task/not_found.out @@ -0,0 +1 @@ +error: Module not found "file:///[WILDCARD]/not_found". |