summaryrefslogtreecommitdiff
path: root/tests/specs/worker/_084_worker_custom_inspect
diff options
context:
space:
mode:
authorMohammad Sulaiman <mohammad.sulaiman@exalt.ps>2024-09-09 18:07:41 +0300
committerGitHub <noreply@github.com>2024-09-09 11:07:41 -0400
commit582be0adc2b80e532cf92ffbc44c8c8268a51774 (patch)
tree48e5cdb63e524f974b17a3b787559ab0ff42e5c5 /tests/specs/worker/_084_worker_custom_inspect
parent5126ccb8428c4ccf199d3b30f1cd86ef11009ef7 (diff)
chore: Deprecate worker itests (#25514)
Diffstat (limited to 'tests/specs/worker/_084_worker_custom_inspect')
-rw-r--r--tests/specs/worker/_084_worker_custom_inspect/__test__.jsonc4
-rw-r--r--tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.out1
-rw-r--r--tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.ts4
-rw-r--r--tests/specs/worker/_084_worker_custom_inspect/custom_inspect/worker.ts2
4 files changed, 11 insertions, 0 deletions
diff --git a/tests/specs/worker/_084_worker_custom_inspect/__test__.jsonc b/tests/specs/worker/_084_worker_custom_inspect/__test__.jsonc
new file mode 100644
index 000000000..8d47afab4
--- /dev/null
+++ b/tests/specs/worker/_084_worker_custom_inspect/__test__.jsonc
@@ -0,0 +1,4 @@
+{
+ "args": "run --allow-read custom_inspect/main.ts",
+ "output": "custom_inspect/main.out"
+}
diff --git a/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.out b/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.out
new file mode 100644
index 000000000..40d9b88ad
--- /dev/null
+++ b/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.out
@@ -0,0 +1 @@
+ReadableStream { locked: false }
diff --git a/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.ts b/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.ts
new file mode 100644
index 000000000..93d4eec2d
--- /dev/null
+++ b/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/main.ts
@@ -0,0 +1,4 @@
+new Worker(
+ import.meta.resolve("./worker.ts"),
+ { type: "module" },
+);
diff --git a/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/worker.ts b/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/worker.ts
new file mode 100644
index 000000000..5be82724e
--- /dev/null
+++ b/tests/specs/worker/_084_worker_custom_inspect/custom_inspect/worker.ts
@@ -0,0 +1,2 @@
+console.log(new ReadableStream());
+close();