diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-05-13 14:49:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-13 14:49:11 +0900 |
| commit | 2a0c66484098ba35c1b31d4dc6380887b6eb9da4 (patch) | |
| tree | 5c01b215882c3335853a6e1b36089d1bf1695c30 /cli/tests/node_compat | |
| parent | 68c0fcb157bb47bbf58bcdcecf59d237fb84f201 (diff) | |
chore: fix & update node compat config (#19106)
Diffstat (limited to 'cli/tests/node_compat')
5 files changed, 0 insertions, 38 deletions
diff --git a/cli/tests/node_compat/config.jsonc b/cli/tests/node_compat/config.jsonc index 8fbc3e921..81463bcaf 100644 --- a/cli/tests/node_compat/config.jsonc +++ b/cli/tests/node_compat/config.jsonc @@ -366,7 +366,6 @@ "test-http-outgoing-message-inheritance.js", "test-http-outgoing-renderHeaders.js", "test-http-outgoing-settimeout.js", - "test-module-run-main.js", "test-net-access-byteswritten.js", "test-net-better-error-messages-listen-path.js", "test-net-better-error-messages-path.js", @@ -655,8 +654,6 @@ "test-whatwg-url-override-hostname.js", "test-whatwg-url-properties.js", "test-whatwg-url-toascii.js", - "test-worker-threads-broadcast-channel.js", - "test-worker-threads-message-channel.js", "test-zlib-close-after-error.js", "test-zlib-close-after-write.js", "test-zlib-convenience-methods.js", diff --git a/cli/tests/node_compat/test/fixtures/run-main.js b/cli/tests/node_compat/test/fixtures/run-main.js deleted file mode 100644 index 9a081cbba..000000000 --- a/cli/tests/node_compat/test/fixtures/run-main.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.foo = 42; diff --git a/cli/tests/node_compat/test/parallel/test-module-run-main.js b/cli/tests/node_compat/test/parallel/test-module-run-main.js deleted file mode 100644 index 8e30de267..000000000 --- a/cli/tests/node_compat/test/parallel/test-module-run-main.js +++ /dev/null @@ -1,15 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -"use strict"; - -const Module = require("module"); -const assert = require("assert/strict"); -const path = require("path"); - -const file = path.join(__dirname, "..", "fixtures", "run-main.js"); -process.argv = [process.argv[0], file]; -Module.runMain(); - -// The required file via `Module.runMain()` sets this global -assert.equal(globalThis.foo, 42); diff --git a/cli/tests/node_compat/test/parallel/test-worker-threads-broadcast-channel.js b/cli/tests/node_compat/test/parallel/test-worker-threads-broadcast-channel.js deleted file mode 100644 index a8fd3ff0e..000000000 --- a/cli/tests/node_compat/test/parallel/test-worker-threads-broadcast-channel.js +++ /dev/null @@ -1,9 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -"use strict"; - -const assert = require("assert/strict"); -const worker_threads = require("worker_threads"); - -assert.equal(BroadcastChannel, worker_threads.BroadcastChannel); diff --git a/cli/tests/node_compat/test/parallel/test-worker-threads-message-channel.js b/cli/tests/node_compat/test/parallel/test-worker-threads-message-channel.js deleted file mode 100644 index b831ed3fe..000000000 --- a/cli/tests/node_compat/test/parallel/test-worker-threads-message-channel.js +++ /dev/null @@ -1,10 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -"use strict"; - -const assert = require("assert/strict"); -const worker_threads = require("worker_threads"); - -assert.equal(MessageChannel, worker_threads.MessageChannel); -assert.equal(MessagePort, worker_threads.MessagePort); |
