summaryrefslogtreecommitdiff
path: root/cli/tests/integration/worker_tests.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-10-01 10:30:55 +0100
committerGitHub <noreply@github.com>2021-10-01 11:30:55 +0200
commitb354eaa2475a16f66e99efc82bebf5bd620406e4 (patch)
treeaa8d15ba548032e44834bb736b1d32882bf60688 /cli/tests/integration/worker_tests.rs
parentc0b6c0eea59f0bea0ab12b2949a7c37c1a774293 (diff)
fix(runtime/js/workers): throw errors instead of using an op (#12249)
Diffstat (limited to 'cli/tests/integration/worker_tests.rs')
-rw-r--r--cli/tests/integration/worker_tests.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/integration/worker_tests.rs b/cli/tests/integration/worker_tests.rs
index c158776ee..bf1057821 100644
--- a/cli/tests/integration/worker_tests.rs
+++ b/cli/tests/integration/worker_tests.rs
@@ -20,6 +20,20 @@ itest!(worker_nested_error {
exit_code: 1,
});
+itest!(worker_async_error {
+ args: "run -A --quiet --reload workers/worker_async_error.ts",
+ output: "workers/worker_async_error.ts.out",
+ http_server: true,
+ exit_code: 1,
+});
+
+itest!(worker_message_handler_error {
+ args: "run -A --quiet --reload workers/worker_message_handler_error.ts",
+ output: "workers/worker_message_handler_error.ts.out",
+ http_server: true,
+ exit_code: 1,
+});
+
itest!(nonexistent_worker {
args: "run --allow-read workers/nonexistent_worker.ts",
output: "workers/nonexistent_worker.out",