From edca01c35e7f3f76ec98dd912314db16995e2a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 19 Apr 2023 00:32:21 +0200 Subject: chore: disable flaky Node compat tests (#18760) I'm not able to reproduce any of the failures from CI on my machine. I'm going to disable these tests for now as they are holding us back. --- cli/tests/node_compat/common.ts | 8 +- cli/tests/node_compat/config.json | 715 -------------------- cli/tests/node_compat/config.jsonc | 717 +++++++++++++++++++++ .../test-child-process-can-write-to-stdout.js | 29 - ...process-execFile-promisified-abortController.js | 66 -- 5 files changed, 721 insertions(+), 814 deletions(-) delete mode 100644 cli/tests/node_compat/config.json create mode 100644 cli/tests/node_compat/config.jsonc delete mode 100644 cli/tests/node_compat/test/parallel/test-child-process-can-write-to-stdout.js delete mode 100644 cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js (limited to 'cli/tests') diff --git a/cli/tests/node_compat/common.ts b/cli/tests/node_compat/common.ts index e9cfe3191..1b9748f26 100644 --- a/cli/tests/node_compat/common.ts +++ b/cli/tests/node_compat/common.ts @@ -1,7 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. import { partition } from "../../../test_util/std/collections/partition.ts"; import { join } from "../../../test_util/std/path/mod.ts"; - +import * as JSONC from "../../../test_util/std/encoding/jsonc.ts"; /** * The test suite matches the folders inside the `test` folder inside the * node repo @@ -26,9 +26,9 @@ interface Config { darwinIgnore: TestSuites; } -export const config: Config = JSON.parse( - await Deno.readTextFile(new URL("./config.json", import.meta.url)), -); +export const config: Config = JSONC.parse( + await Deno.readTextFile(new URL("./config.jsonc", import.meta.url)), +) as unknown as Config; export const ignoreList = Object.entries(config.ignore).reduce( (total: RegExp[], [suite, paths]) => { diff --git a/cli/tests/node_compat/config.json b/cli/tests/node_compat/config.json deleted file mode 100644 index 59670057a..000000000 --- a/cli/tests/node_compat/config.json +++ /dev/null @@ -1,715 +0,0 @@ -{ - "nodeVersion": "18.12.1", - "ignore": { - "common": ["index.js", "internet.js", "tmpdir.js"], - "fixtures": [ - "child-process-spawn-node.js", - "echo.js", - "elipses.txt", - "empty.txt", - "exit.js", - "print-chars.js", - "x.txt" - ], - "internet": [ - "test-dns-any.js", - "test-dns-ipv4.js", - "test-dns-ipv6.js", - "test-dns.js" - ], - "parallel": [ - "test-assert.js", - "test-buffer-alloc.js", - "test-buffer-arraybuffer.js", - "test-buffer-bytelength.js", - "test-buffer-from.js", - "test-buffer-includes.js", - "test-buffer-indexof.js", - "test-child-process-exec-abortcontroller-promisified.js", - "test-child-process-exec-encoding.js", - "test-child-process-exec-kill-throws.js", - "test-child-process-exec-maxbuf.js", - "test-child-process-exec-std-encoding.js", - "test-child-process-exec-timeout-expire.js", - "test-child-process-exec-timeout-kill.js", - "test-child-process-exec-timeout-not-expired.js", - "test-child-process-execFile-promisified-abortController.js", - "test-child-process-execfile.js", - "test-child-process-execsync-maxbuf.js", - "test-child-process-exit-code.js", - "test-child-process-ipc.js", - "test-child-process-spawnsync-env.js", - "test-child-process-stdio-inherit.js", - "test-child-process-stdout-flush-exit.js", - "test-child-process-stdout-flush.js", - "test-console-instance.js", - "test-crypto-hkdf.js", - "test-crypto-hmac.js", - "test-crypto-prime.js", - "test-crypto-x509.js", - "test-dgram-custom-lookup.js", - "test-dgram-ipv6only.js", - "test-dgram-send-cb-quelches-error.js", - "test-dgram-socket-buffer-size.js", - "test-dgram-udp6-link-local-address.js", - "test-dns-lookup.js", - "test-dns-resolveany.js", - "test-dns.js", - "test-event-emitter-max-listeners.js", - "test-event-emitter-no-error-provided-to-error-event.js", - "test-event-emitter-prepend.js", - "test-events-once.js", - "test-fs-append-file.js", - "test-fs-chmod-mask.js", - "test-fs-chmod.js", - "test-fs-mkdir.js", - "test-fs-open.js", - "test-fs-opendir.js", - "test-fs-rmdir-recursive.js", - "test-fs-write-file.js", - "test-fs-write.js", - "test-net-better-error-messages-path.js", - "test-net-connect-buffer.js", - "test-net-connect-buffer2.js", - "test-net-end-close.js", - "test-net-listen-invalid-port.js", - "test-net-server-call-listen-multiple-times.js", - "test-net-server-listen-path.js", - "test-net-server-try-ports.js", - "test-net-socket-timeout.js", - "test-net-write-arguments.js", - "test-os.js", - "test-path-resolve.js", - "test-path.js", - "test-querystring.js", - "test-readline-interface.js", - "test-stdin-from-file-spawn.js", - "test-url-urltooptions.js", - "test-util-format.js", - "test-util-inspect-namespace.js", - "test-util-inspect-proxy.js", - "test-util-inspect.js", - "test-util-isDeepStrictEqual.js", - "test-util-promisify.js", - "test-util-types.js", - "test-util.js", - "test-webcrypto-sign-verify.js", - "test-whatwg-url-properties.js", - "test-zlib-convenience-methods.js", - "test-zlib-empty-buffer.js", - "test-zlib-invalid-input.js", - "test-zlib-random-byte-pipes.js", - "test-zlib-write-after-flush.js", - "test-zlib-zero-byte.js", - "test-zlib-zero-windowBits.js" - ], - "pummel": [], - "sequential": [ - "test-child-process-exit.js" - ] - }, - "tests": { - "common": [ - "child_process.js", - "countdown.js", - "dns.js", - "duplexpair.js", - "fixtures.js", - "hijackstdio.js", - "index.mjs", - "internet.js" - ], - "fixtures": [ - "GH-1899-output.js", - "a.js", - "child-process-spawn-node.js", - "child_process_should_emit_error.js", - "echo.js", - "elipses.txt", - "empty.txt", - "exit.js", - "loop.js", - "print-chars.js", - "x.txt" - ], - "fixtures/keys": [ - "agent1-cert.pem", - "agent1-key.pem", - "ca1-cert.pem" - ], - "internet": [ - "test-dns-any.js", - "test-dns-idna2008.js", - "test-dns-ipv4.js", - "test-dns-ipv6.js", - "test-dns-lookup.js", - "test-dns-promises-resolve.js", - "test-dns-regress-6244.js", - "test-dns-setserver-in-callback-of-resolve4.js", - "test-dns.js" - ], - "parallel": [ - "test-assert-async.js", - "test-assert-fail.js", - "test-assert-strict-exists.js", - "test-assert.js", - "test-bad-unicode.js", - "test-btoa-atob.js", - "test-buffer-arraybuffer.js", - "test-buffer-ascii.js", - "test-buffer-badhex.js", - "test-buffer-bigint64.js", - "test-buffer-bytelength.js", - "test-buffer-compare-offset.js", - "test-buffer-concat.js", - "test-buffer-constants.js", - "test-buffer-copy.js", - "test-buffer-equals.js", - "test-buffer-failed-alloc-typed-arrays.js", - "test-buffer-fakes.js", - "test-buffer-from.js", - "test-buffer-includes.js", - "test-buffer-inheritance.js", - "test-buffer-isencoding.js", - "test-buffer-iterator.js", - "test-buffer-new.js", - "test-buffer-no-negative-allocation.js", - "test-buffer-nopendingdep-map.js", - "test-buffer-of-no-deprecation.js", - "test-buffer-over-max-length.js", - "test-buffer-parent-property.js", - "test-buffer-read.js", - "test-buffer-readdouble.js", - "test-buffer-readfloat.js", - "test-buffer-readint.js", - "test-buffer-readuint.js", - "test-buffer-safe-unsafe.js", - "test-buffer-slice.js", - "test-buffer-slow.js", - "test-buffer-swap.js", - "test-buffer-tojson.js", - "test-buffer-tostring-range.js", - "test-buffer-tostring-rangeerror.js", - "test-buffer-tostring.js", - "test-buffer-writedouble.js", - "test-buffer-writefloat.js", - "test-buffer-writeint.js", - "test-buffer-writeuint.js", - "test-buffer-zero-fill-cli.js", - "test-buffer-zero-fill-reset.js", - "test-buffer-zero-fill.js", - "test-child-process-can-write-to-stdout.js", - "test-child-process-default-options.js", - "test-child-process-double-pipe.js", - "test-child-process-exec-abortcontroller-promisified.js", - "test-child-process-exec-cwd.js", - "test-child-process-exec-env.js", - "test-child-process-exec-error.js", - "test-child-process-exec-kill-throws.js", - "test-child-process-exec-maxbuf.js", - "test-child-process-exec-stdout-stderr-data-string.js", - "test-child-process-exec-timeout-expire.js", - "test-child-process-exec-timeout-kill.js", - "test-child-process-execFile-promisified-abortController.js", - "test-child-process-execfile-maxbuf.js", - "test-child-process-execfilesync-maxbuf.js", - "test-child-process-execsync-maxbuf.js", - "test-child-process-flush-stdio.js", - "test-child-process-kill.js", - "test-child-process-set-blocking.js", - "test-child-process-spawn-args.js", - "test-child-process-spawn-event.js", - "test-child-process-spawnsync-args.js", - "test-child-process-spawnsync-maxbuf.js", - "test-child-process-spawnsync-validation-errors.js", - "test-child-process-spawnsync.js", - "test-client-request-destroy.js", - "test-console-async-write-error.js", - "test-console-group.js", - "test-console-log-stdio-broken-dest.js", - "test-console-log-throw-primitive.js", - "test-console-no-swallow-stack-overflow.js", - "test-console-sync-write-error.js", - "test-console-table.js", - "test-console-tty-colors.js", - "test-crypto-hkdf.js", - "test-crypto-hmac.js", - "test-crypto-prime.js", - "test-crypto-secret-keygen.js", - "test-crypto-update-encoding.js", - "test-crypto-x509.js", - "test-dgram-close-during-bind.js", - "test-dgram-close-signal.js", - "test-diagnostics-channel-has-subscribers.js", - "test-diagnostics-channel-object-channel-pub-sub.js", - "test-diagnostics-channel-pub-sub.js", - "test-diagnostics-channel-symbol-named.js", - "test-diagnostics-channel-udp.js", - "test-dns-lookup.js", - "test-dns-memory-error.js", - "test-dns-promises-exists.js", - "test-dns-resolvens-typeerror.js", - "test-dns-setservers-type-check.js", - "test-eval-strict-referenceerror.js", - "test-eval.js", - "test-event-emitter-add-listeners.js", - "test-event-emitter-emit-context.js", - "test-event-emitter-error-monitor.js", - "test-event-emitter-errors.js", - "test-event-emitter-get-max-listeners.js", - "test-event-emitter-invalid-listener.js", - "test-event-emitter-listener-count.js", - "test-event-emitter-listeners-side-effects.js", - "test-event-emitter-listeners.js", - "test-event-emitter-max-listeners.js", - "test-event-emitter-method-names.js", - "test-event-emitter-modify-in-emit.js", - "test-event-emitter-no-error-provided-to-error-event.js", - "test-event-emitter-num-args.js", - "test-event-emitter-once.js", - "test-event-emitter-prepend.js", - "test-event-emitter-remove-all-listeners.js", - "test-event-emitter-remove-listeners.js", - "test-event-emitter-set-max-listeners-side-effects.js", - "test-event-emitter-special-event-names.js", - "test-event-emitter-subclass.js", - "test-event-emitter-symbols.js", - "test-events-list.js", - "test-events-on-async-iterator.js", - "test-events-once.js", - "test-events-uncaught-exception-stack.js", - "test-eventtarget-brandcheck.js", - "test-exception-handler.js", - "test-exception-handler2.js", - "test-file-read-noexist.js", - "test-file-write-stream.js", - "test-file-write-stream2.js", - "test-file-write-stream3.js", - "test-file-write-stream4.js", - "test-fs-access.js", - "test-fs-append-file-sync.js", - "test-fs-append-file.js", - "test-fs-chmod-mask.js", - "test-fs-chmod.js", - "test-fs-chown-type-check.js", - "test-fs-copyfile.js", - "test-fs-empty-readStream.js", - "test-fs-mkdir.js", - "test-fs-open-flags.js", - "test-fs-open-mode-mask.js", - "test-fs-open-no-close.js", - "test-fs-open-numeric-flags.js", - "test-fs-open.js", - "test-fs-opendir.js", - "test-fs-read-stream-autoClose.js", - "test-fs-read-stream-concurrent-reads.js", - "test-fs-read-stream-double-close.js", - "test-fs-read-stream-encoding.js", - "test-fs-read-stream-fd.js", - "test-fs-read-stream-inherit.js", - "test-fs-read-stream-patch-open.js", - "test-fs-read-stream-resume.js", - "test-fs-read-stream-throw-type-error.js", - "test-fs-read-stream.js", - "test-fs-read-type.js", - "test-fs-read-zero-length.js", - "test-fs-read.js", - "test-fs-readdir-stack-overflow.js", - "test-fs-readdir.js", - "test-fs-readfile-empty.js", - "test-fs-realpath-native.js", - "test-fs-rmdir-recursive-sync-warns-not-found.js", - "test-fs-rmdir-recursive-sync-warns-on-file.js", - "test-fs-rmdir-recursive-throws-not-found.js", - "test-fs-rmdir-recursive-throws-on-file.js", - "test-fs-rmdir-recursive-warns-not-found.js", - "test-fs-rmdir-recursive-warns-on-file.js", - "test-fs-rmdir-recursive.js", - "test-fs-rmdir-type-check.js", - "test-fs-watchfile.js", - "test-fs-write-buffer.js", - "test-fs-write-file-buffer.js", - "test-fs-write-file-invalid-path.js", - "test-fs-write-file-sync.js", - "test-fs-write-file.js", - "test-fs-write-no-fd.js", - "test-fs-write-stream-autoclose-option.js", - "test-fs-write-stream-close-without-callback.js", - "test-fs-write-stream-double-close.js", - "test-fs-write-stream-end.js", - "test-fs-write-stream-fs.js", - "test-fs-write-stream-throw-type-error.js", - "test-fs-write-stream.js", - "test-fs-write-sync.js", - "test-fs-write.js", - "test-fs-writev-sync.js", - "test-handle-wrap-close-abort.js", - "test-http-agent-getname.js", - "test-http-client-get-url.js", - "test-http-client-read-in-error.js", - "test-http-localaddress.js", - "test-http-outgoing-buffer.js", - "test-http-outgoing-internal-headernames-getter.js", - "test-http-outgoing-internal-headernames-setter.js", - "test-http-outgoing-internal-headers.js", - "test-http-outgoing-message-inheritance.js", - "test-http-outgoing-renderHeaders.js", - "test-http-outgoing-settimeout.js", - "test-net-access-byteswritten.js", - "test-net-better-error-messages-listen-path.js", - "test-net-better-error-messages-path.js", - "test-net-better-error-messages-port-hostname.js", - "test-net-connect-after-destroy.js", - "test-net-connect-destroy.js", - "test-net-connect-immediate-destroy.js", - "test-net-connect-immediate-finish.js", - "test-net-connect-no-arg.js", - "test-net-dns-error.js", - "test-net-during-close.js", - "test-net-end-close.js", - "test-net-end-without-connect.js", - "test-net-isip.js", - "test-net-isipv4.js", - "test-net-isipv6.js", - "test-net-listen-close-server-callback-is-not-function.js", - "test-net-listen-close-server.js", - "test-net-listen-invalid-port.js", - "test-net-listening.js", - "test-net-localerror.js", - "test-net-options-lookup.js", - "test-net-pipe-connect-errors.js", - "test-net-server-listen-options-signal.js", - "test-net-server-listen-options.js", - "test-net-server-listen-path.js", - "test-net-server-listen-remove-callback.js", - "test-net-server-options.js", - "test-net-server-unref-persistent.js", - "test-net-server-unref.js", - "test-net-socket-destroy-twice.js", - "test-net-socket-no-halfopen-enforcer.js", - "test-net-timeout-no-handle.js", - "test-net-write-arguments.js", - "test-next-tick-doesnt-hang.js", - "test-next-tick-fixed-queue-regression.js", - "test-next-tick-intentional-starvation.js", - "test-next-tick-ordering.js", - "test-next-tick-ordering2.js", - "test-next-tick-when-exiting.js", - "test-next-tick.js", - "test-nodeeventtarget.js", - "test-outgoing-message-destroy.js", - "test-outgoing-message-pipe.js", - "test-path-basename.js", - "test-path-dirname.js", - "test-path-extname.js", - "test-path-isabsolute.js", - "test-path-join.js", - "test-path-makelong.js", - "test-path-normalize.js", - "test-path-parse-format.js", - "test-path-posix-exists.js", - "test-path-relative.js", - "test-path-resolve.js", - "test-path-win32-exists.js", - "test-path-zero-length-strings.js", - "test-path.js", - "test-process-beforeexit.js", - "test-process-binding-internalbinding-allowlist.js", - "test-process-env-allowed-flags.js", - "test-process-exit-from-before-exit.js", - "test-process-exit-handler.js", - "test-process-exit-recursive.js", - "test-process-exit.js", - "test-process-kill-pid.js", - "test-process-uptime.js", - "test-promise-unhandled-silent.js", - "test-promise-unhandled-throw-handler.js", - "test-querystring-escape.js", - "test-querystring-maxKeys-non-finite.js", - "test-querystring-multichar-separator.js", - "test-querystring.js", - "test-readline-emit-keypress-events.js", - "test-readline-interface-escapecodetimeout.js", - "test-readline-keys.js", - "test-readline-position.js", - "test-readline-reopen.js", - "test-readline-set-raw-mode.js", - "test-readline-undefined-columns.js", - "test-readline.js", - "test-stdin-from-file-spawn.js", - "test-stream-add-abort-signal.js", - "test-stream-aliases-legacy.js", - "test-stream-auto-destroy.js", - "test-stream-await-drain-writers-in-synchronously-recursion-write.js", - "test-stream-backpressure.js", - "test-stream-big-packet.js", - "test-stream-big-push.js", - "test-stream-buffer-list.js", - "test-stream-construct.js", - "test-stream-destroy-event-order.js", - "test-stream-duplex-destroy.js", - "test-stream-duplex-end.js", - "test-stream-duplex-from.js", - "test-stream-duplex-props.js", - "test-stream-duplex-readable-end.js", - "test-stream-duplex-writable-finished.js", - "test-stream-duplex.js", - "test-stream-end-paused.js", - "test-stream-error-once.js", - "test-stream-events-prepend.js", - "test-stream-inheritance.js", - "test-stream-ispaused.js", - "test-stream-objectmode-undefined.js", - "test-stream-once-readable-pipe.js", - "test-stream-pipe-after-end.js", - "test-stream-pipe-await-drain-manual-resume.js", - "test-stream-pipe-await-drain-push-while-write.js", - "test-stream-pipe-await-drain.js", - "test-stream-pipe-cleanup-pause.js", - "test-stream-pipe-cleanup.js", - "test-stream-pipe-error-handling.js", - "test-stream-pipe-event.js", - "test-stream-pipe-flow-after-unpipe.js", - "test-stream-pipe-flow.js", - "test-stream-pipe-manual-resume.js", - "test-stream-pipe-multiple-pipes.js", - "test-stream-pipe-needDrain.js", - "test-stream-pipe-same-destination-twice.js", - "test-stream-pipe-unpipe-streams.js", - "test-stream-pipe-without-listenerCount.js", - "test-stream-pipeline-async-iterator.js", - "test-stream-pipeline-queued-end-in-destroy.js", - "test-stream-pipeline-with-empty-string.js", - "test-stream-push-strings.js", - "test-stream-readable-aborted.js", - "test-stream-readable-add-chunk-during-data.js", - "test-stream-readable-constructor-set-methods.js", - "test-stream-readable-data.js", - "test-stream-readable-destroy.js", - "test-stream-readable-didRead.js", - "test-stream-readable-emit-readable-short-stream.js", - "test-stream-readable-emittedReadable.js", - "test-stream-readable-end-destroyed.js", - "test-stream-readable-ended.js", - "test-stream-readable-error-end.js", - "test-stream-readable-event.js", - "test-stream-readable-flow-recursion.js", - "test-stream-readable-hwm-0-async.js", - "test-stream-readable-hwm-0-no-flow-data.js", - "test-stream-readable-hwm-0.js", - "test-stream-readable-infinite-read.js", - "test-stream-readable-invalid-chunk.js", - "test-stream-readable-needReadable.js", - "test-stream-readable-next-no-null.js", - "test-stream-readable-no-unneeded-readable.js", - "test-stream-readable-object-multi-push-async.js", - "test-stream-readable-pause-and-resume.js", - "test-stream-readable-readable-then-resume.js", - "test-stream-readable-readable.js", - "test-stream-readable-reading-readingMore.js", - "test-stream-readable-resume-hwm.js", - "test-stream-readable-resumeScheduled.js", - "test-stream-readable-setEncoding-existing-buffers.js", - "test-stream-readable-setEncoding-null.js", - "test-stream-readable-unshift.js", - "test-stream-readable-with-unimplemented-_read.js", - "test-stream-readableListening-state.js", - "test-stream-transform-callback-twice.js", - "test-stream-transform-constructor-set-methods.js", - "test-stream-transform-destroy.js", - "test-stream-transform-final-sync.js", - "test-stream-transform-final.js", - "test-stream-transform-flush-data.js", - "test-stream-transform-objectmode-falsey-value.js", - "test-stream-transform-split-highwatermark.js", - "test-stream-transform-split-objectmode.js", - "test-stream-uint8array.js", - "test-stream-unpipe-event.js", - "test-stream-unshift-empty-chunk.js", - "test-stream-unshift-read-race.js", - "test-stream-writable-change-default-encoding.js", - "test-stream-writable-clear-buffer.js", - "test-stream-writable-constructor-set-methods.js", - "test-stream-writable-decoded-encoding.js", - "test-stream-writable-destroy.js", - "test-stream-writable-end-cb-error.js", - "test-stream-writable-end-multiple.js", - "test-stream-writable-ended-state.js", - "test-stream-writable-finish-destroyed.js", - "test-stream-writable-finished-state.js", - "test-stream-writable-finished.js", - "test-stream-writable-invalid-chunk.js", - "test-stream-writable-needdrain-state.js", - "test-stream-writable-null.js", - "test-stream-writable-properties.js", - "test-stream-writable-writable.js", - "test-stream-writable-write-cb-error.js", - "test-stream-writable-write-cb-twice.js", - "test-stream-writable-write-error.js", - "test-stream-writable-write-writev-finish.js", - "test-stream-writableState-ending.js", - "test-stream-writableState-uncorked-bufferedRequestCount.js", - "test-stream-write-destroy.js", - "test-stream-write-drain.js", - "test-stream-write-final.js", - "test-stream-writev.js", - "test-stream2-base64-single-char-read-end.js", - "test-stream2-basic.js", - "test-stream2-compatibility.js", - "test-stream2-decode-partial.js", - "test-stream2-finish-pipe.js", - "test-stream2-large-read-stall.js", - "test-stream2-objects.js", - "test-stream2-pipe-error-handling.js", - "test-stream2-pipe-error-once-listener.js", - "test-stream2-push.js", - "test-stream2-read-sync-stack.js", - "test-stream2-readable-empty-buffer-no-eof.js", - "test-stream2-readable-from-list.js", - "test-stream2-readable-legacy-drain.js", - "test-stream2-readable-non-empty-end.js", - "test-stream2-readable-wrap-destroy.js", - "test-stream2-readable-wrap-empty.js", - "test-stream2-readable-wrap-error.js", - "test-stream2-readable-wrap.js", - "test-stream2-set-encoding.js", - "test-stream2-transform.js", - "test-stream2-unpipe-drain.js", - "test-stream2-unpipe-leak.js", - "test-stream2-writable.js", - "test-stream3-cork-end.js", - "test-stream3-cork-uncork.js", - "test-stream3-pause-then-read.js", - "test-streams-highwatermark.js", - "test-timers-api-refs.js", - "test-timers-args.js", - "test-timers-clear-null-does-not-throw-error.js", - "test-timers-clear-object-does-not-throw-error.js", - "test-timers-clear-timeout-interval-equivalent.js", - "test-timers-clearImmediate.js", - "test-timers-interval-throw.js", - "test-timers-non-integer-delay.js", - "test-timers-refresh.js", - "test-timers-same-timeout-wrong-list-deleted.js", - "test-timers-timeout-with-non-integer.js", - "test-timers-uncaught-exception.js", - "test-timers-unref-throw-then-ref.js", - "test-timers-user-call.js", - "test-timers-zero-timeout.js", - "test-url-domain-ascii-unicode.js", - "test-url-fileurltopath.js", - "test-url-format-invalid-input.js", - "test-url-format-whatwg.js", - "test-url-format.js", - "test-url-parse-format.js", - "test-url-parse-invalid-input.js", - "test-url-parse-query.js", - "test-url-pathtofileurl.js", - "test-url-relative.js", - "test-url-urltooptions.js", - "test-util-deprecate-invalid-code.js", - "test-util-deprecate.js", - "test-util-format.js", - "test-util-inherits.js", - "test-util-inspect-long-running.js", - "test-util-inspect-namespace.js", - "test-util-inspect-proxy.js", - "test-util-inspect.js", - "test-util-isDeepStrictEqual.js", - "test-util-promisify.js", - "test-util-types-exists.js", - "test-util-types.js", - "test-util.js", - "test-vm-static-this.js", - "test-webcrypto-sign-verify.js", - "test-whatwg-encoding-custom-api-basics.js", - "test-whatwg-encoding-custom-fatal-streaming.js", - "test-whatwg-encoding-custom-textdecoder-fatal.js", - "test-whatwg-encoding-custom-textdecoder-ignorebom.js", - "test-whatwg-encoding-custom-textdecoder-streaming.js", - "test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js", - "test-whatwg-events-add-event-listener-options-passive.js", - "test-whatwg-events-add-event-listener-options-signal.js", - "test-whatwg-events-customevent.js", - "test-whatwg-url-custom-deepequal.js", - "test-whatwg-url-custom-domainto.js", - "test-whatwg-url-custom-global.js", - "test-whatwg-url-custom-href-side-effect.js", - "test-whatwg-url-custom-inspect.js", - "test-whatwg-url-custom-parsing.js", - "test-whatwg-url-custom-setters.js", - "test-whatwg-url-custom-tostringtag.js", - "test-whatwg-url-override-hostname.js", - "test-whatwg-url-properties.js", - "test-whatwg-url-toascii.js", - "test-zlib-close-after-error.js", - "test-zlib-close-after-write.js", - "test-zlib-convenience-methods.js", - "test-zlib-deflate-raw-inherits.js", - "test-zlib-destroy-pipe.js", - "test-zlib-empty-buffer.js", - "test-zlib-from-string.js", - "test-zlib-invalid-input.js", - "test-zlib-no-stream.js", - "test-zlib-random-byte-pipes.js", - "test-zlib-sync-no-event.js", - "test-zlib-truncated.js", - "test-zlib-unzip-one-byte-chunks.js", - "test-zlib-write-after-end.js", - "test-zlib-write-after-flush.js", - "test-zlib-zero-byte.js", - "test-zlib-zero-windowBits.js" - ], - "pseudo-tty": [ - "console-dumb-tty.js", - "console_colors.js", - "no_dropped_stdio.js", - "no_interleaved_stdio.js", - "test-tty-color-support-warning-2.js", - "test-tty-color-support-warning.js", - "test-tty-stdin-end.js", - "test-tty-stdout-end.js" - ], - "pummel": [], - "sequential": [ - "test-child-process-exit.js" - ] - }, - "windowsIgnore": { - "parallel": [ - "test-child-process-exec-abortcontroller-promisified.js", - "test-console-log-throw-primitive.js", - "test-console-no-swallow-stack-overflow.js", - "test-console-sync-write-error.js", - "test-dns.js", - "test-dns-resolveany.js", - "test-fs-access.js", - "test-fs-mkdir.js", - "test-fs-open-mode-mask.js", - "test-fs-readdir-stack-overflow.js", - "test-fs-rm.js", - "test-fs-watchfile.js", - "test-fs-write-file-invalid-path.js", - "test-fs-write-file-sync.js", - "test-fs-write-file.js", - "test-http-client-get-url.js", - "test-http-client-reject-cr-no-lf.js", - "test-net-allow-half-open.js", - "test-net-better-error-messages-listen-path.js", - "test-net-better-error-messages-path.js", - "test-net-pipe-connect-errors.js", - "test-net-server-listen-path.js", - "test-net-socket-close-after-end.js", - "test-util-inspect-long-running.js", - "test-util-inspect.js" - ] - }, - "darwinIgnore": { - "parallel": [ - "test-net-allow-half-open.js", - "test-net-socket-close-after-end.js" - ] - }, - "suitesFolder": "test", - "versionsFolder": "versions" -} diff --git a/cli/tests/node_compat/config.jsonc b/cli/tests/node_compat/config.jsonc new file mode 100644 index 000000000..62ab88e3d --- /dev/null +++ b/cli/tests/node_compat/config.jsonc @@ -0,0 +1,717 @@ +{ + "nodeVersion": "18.12.1", + "ignore": { + "common": ["index.js", "internet.js", "tmpdir.js"], + "fixtures": [ + "child-process-spawn-node.js", + "echo.js", + "elipses.txt", + "empty.txt", + "exit.js", + "print-chars.js", + "x.txt" + ], + "internet": [ + "test-dns-any.js", + "test-dns-ipv4.js", + "test-dns-ipv6.js", + "test-dns.js" + ], + "parallel": [ + "test-assert.js", + "test-buffer-alloc.js", + "test-buffer-arraybuffer.js", + "test-buffer-bytelength.js", + "test-buffer-from.js", + "test-buffer-includes.js", + "test-buffer-indexof.js", + "test-child-process-exec-abortcontroller-promisified.js", + "test-child-process-exec-encoding.js", + "test-child-process-exec-kill-throws.js", + "test-child-process-exec-maxbuf.js", + "test-child-process-exec-std-encoding.js", + "test-child-process-exec-timeout-expire.js", + "test-child-process-exec-timeout-kill.js", + "test-child-process-exec-timeout-not-expired.js", + "test-child-process-execFile-promisified-abortController.js", + "test-child-process-execfile.js", + "test-child-process-execsync-maxbuf.js", + "test-child-process-exit-code.js", + "test-child-process-ipc.js", + "test-child-process-spawnsync-env.js", + "test-child-process-stdio-inherit.js", + "test-child-process-stdout-flush-exit.js", + "test-child-process-stdout-flush.js", + "test-console-instance.js", + "test-crypto-hkdf.js", + "test-crypto-hmac.js", + "test-crypto-prime.js", + "test-crypto-x509.js", + "test-dgram-custom-lookup.js", + "test-dgram-ipv6only.js", + "test-dgram-send-cb-quelches-error.js", + "test-dgram-socket-buffer-size.js", + "test-dgram-udp6-link-local-address.js", + "test-dns-lookup.js", + "test-dns-resolveany.js", + "test-dns.js", + "test-event-emitter-max-listeners.js", + "test-event-emitter-no-error-provided-to-error-event.js", + "test-event-emitter-prepend.js", + "test-events-once.js", + "test-fs-append-file.js", + "test-fs-chmod-mask.js", + "test-fs-chmod.js", + "test-fs-mkdir.js", + "test-fs-open.js", + "test-fs-opendir.js", + "test-fs-rmdir-recursive.js", + "test-fs-write-file.js", + "test-fs-write.js", + "test-net-better-error-messages-path.js", + "test-net-connect-buffer.js", + "test-net-connect-buffer2.js", + "test-net-end-close.js", + "test-net-listen-invalid-port.js", + "test-net-server-call-listen-multiple-times.js", + "test-net-server-listen-path.js", + "test-net-server-try-ports.js", + "test-net-socket-timeout.js", + "test-net-write-arguments.js", + "test-os.js", + "test-path-resolve.js", + "test-path.js", + "test-querystring.js", + "test-readline-interface.js", + "test-stdin-from-file-spawn.js", + "test-url-urltooptions.js", + "test-util-format.js", + "test-util-inspect-namespace.js", + "test-util-inspect-proxy.js", + "test-util-inspect.js", + "test-util-isDeepStrictEqual.js", + "test-util-promisify.js", + "test-util-types.js", + "test-util.js", + "test-webcrypto-sign-verify.js", + "test-whatwg-url-properties.js", + "test-zlib-convenience-methods.js", + "test-zlib-empty-buffer.js", + "test-zlib-invalid-input.js", + "test-zlib-random-byte-pipes.js", + "test-zlib-write-after-flush.js", + "test-zlib-zero-byte.js", + "test-zlib-zero-windowBits.js" + ], + "pummel": [], + "sequential": [ + "test-child-process-exit.js" + ] + }, + "tests": { + "common": [ + "child_process.js", + "countdown.js", + "dns.js", + "duplexpair.js", + "fixtures.js", + "hijackstdio.js", + "index.mjs", + "internet.js" + ], + "fixtures": [ + "GH-1899-output.js", + "a.js", + "child-process-spawn-node.js", + "child_process_should_emit_error.js", + "echo.js", + "elipses.txt", + "empty.txt", + "exit.js", + "loop.js", + "print-chars.js", + "x.txt" + ], + "fixtures/keys": [ + "agent1-cert.pem", + "agent1-key.pem", + "ca1-cert.pem" + ], + "internet": [ + "test-dns-any.js", + "test-dns-idna2008.js", + "test-dns-ipv4.js", + "test-dns-ipv6.js", + "test-dns-lookup.js", + "test-dns-promises-resolve.js", + "test-dns-regress-6244.js", + "test-dns-setserver-in-callback-of-resolve4.js", + "test-dns.js" + ], + "parallel": [ + "test-assert-async.js", + "test-assert-fail.js", + "test-assert-strict-exists.js", + "test-assert.js", + "test-bad-unicode.js", + "test-btoa-atob.js", + "test-buffer-arraybuffer.js", + "test-buffer-ascii.js", + "test-buffer-badhex.js", + "test-buffer-bigint64.js", + "test-buffer-bytelength.js", + "test-buffer-compare-offset.js", + "test-buffer-concat.js", + "test-buffer-constants.js", + "test-buffer-copy.js", + "test-buffer-equals.js", + "test-buffer-failed-alloc-typed-arrays.js", + "test-buffer-fakes.js", + "test-buffer-from.js", + "test-buffer-includes.js", + "test-buffer-inheritance.js", + "test-buffer-isencoding.js", + "test-buffer-iterator.js", + "test-buffer-new.js", + "test-buffer-no-negative-allocation.js", + "test-buffer-nopendingdep-map.js", + "test-buffer-of-no-deprecation.js", + "test-buffer-over-max-length.js", + "test-buffer-parent-property.js", + "test-buffer-read.js", + "test-buffer-readdouble.js", + "test-buffer-readfloat.js", + "test-buffer-readint.js", + "test-buffer-readuint.js", + "test-buffer-safe-unsafe.js", + "test-buffer-slice.js", + "test-buffer-slow.js", + "test-buffer-swap.js", + "test-buffer-tojson.js", + "test-buffer-tostring-range.js", + "test-buffer-tostring-rangeerror.js", + "test-buffer-tostring.js", + "test-buffer-writedouble.js", + "test-buffer-writefloat.js", + "test-buffer-writeint.js", + "test-buffer-writeuint.js", + "test-buffer-zero-fill-cli.js", + "test-buffer-zero-fill-reset.js", + "test-buffer-zero-fill.js", + // TODO(bartlomieju): this test was flaky on macOS CI + // "test-child-process-can-write-to-stdout.js", + "test-child-process-default-options.js", + "test-child-process-double-pipe.js", + "test-child-process-exec-abortcontroller-promisified.js", + "test-child-process-exec-cwd.js", + "test-child-process-exec-env.js", + "test-child-process-exec-error.js", + "test-child-process-exec-kill-throws.js", + "test-child-process-exec-maxbuf.js", + "test-child-process-exec-stdout-stderr-data-string.js", + "test-child-process-exec-timeout-expire.js", + "test-child-process-exec-timeout-kill.js", + // TODO(bartlomieju): this test was flaky on macOS CI + // "test-child-process-execFile-promisified-abortController.js", + "test-child-process-execfile-maxbuf.js", + "test-child-process-execfilesync-maxbuf.js", + "test-child-process-execsync-maxbuf.js", + "test-child-process-flush-stdio.js", + "test-child-process-kill.js", + "test-child-process-set-blocking.js", + "test-child-process-spawn-args.js", + "test-child-process-spawn-event.js", + "test-child-process-spawnsync-args.js", + "test-child-process-spawnsync-maxbuf.js", + "test-child-process-spawnsync-validation-errors.js", + "test-child-process-spawnsync.js", + "test-client-request-destroy.js", + "test-console-async-write-error.js", + "test-console-group.js", + "test-console-log-stdio-broken-dest.js", + "test-console-log-throw-primitive.js", + "test-console-no-swallow-stack-overflow.js", + "test-console-sync-write-error.js", + "test-console-table.js", + "test-console-tty-colors.js", + "test-crypto-hkdf.js", + "test-crypto-hmac.js", + "test-crypto-prime.js", + "test-crypto-secret-keygen.js", + "test-crypto-update-encoding.js", + "test-crypto-x509.js", + "test-dgram-close-during-bind.js", + "test-dgram-close-signal.js", + "test-diagnostics-channel-has-subscribers.js", + "test-diagnostics-channel-object-channel-pub-sub.js", + "test-diagnostics-channel-pub-sub.js", + "test-diagnostics-channel-symbol-named.js", + "test-diagnostics-channel-udp.js", + "test-dns-lookup.js", + "test-dns-memory-error.js", + "test-dns-promises-exists.js", + "test-dns-resolvens-typeerror.js", + "test-dns-setservers-type-check.js", + "test-eval-strict-referenceerror.js", + "test-eval.js", + "test-event-emitter-add-listeners.js", + "test-event-emitter-emit-context.js", + "test-event-emitter-error-monitor.js", + "test-event-emitter-errors.js", + "test-event-emitter-get-max-listeners.js", + "test-event-emitter-invalid-listener.js", + "test-event-emitter-listener-count.js", + "test-event-emitter-listeners-side-effects.js", + "test-event-emitter-listeners.js", + "test-event-emitter-max-listeners.js", + "test-event-emitter-method-names.js", + "test-event-emitter-modify-in-emit.js", + "test-event-emitter-no-error-provided-to-error-event.js", + "test-event-emitter-num-args.js", + "test-event-emitter-once.js", + "test-event-emitter-prepend.js", + "test-event-emitter-remove-all-listeners.js", + "test-event-emitter-remove-listeners.js", + "test-event-emitter-set-max-listeners-side-effects.js", + "test-event-emitter-special-event-names.js", + "test-event-emitter-subclass.js", + "test-event-emitter-symbols.js", + "test-events-list.js", + "test-events-on-async-iterator.js", + "test-events-once.js", + "test-events-uncaught-exception-stack.js", + "test-eventtarget-brandcheck.js", + "test-exception-handler.js", + "test-exception-handler2.js", + "test-file-read-noexist.js", + "test-file-write-stream.js", + "test-file-write-stream2.js", + "test-file-write-stream3.js", + "test-file-write-stream4.js", + "test-fs-access.js", + "test-fs-append-file-sync.js", + "test-fs-append-file.js", + "test-fs-chmod-mask.js", + "test-fs-chmod.js", + "test-fs-chown-type-check.js", + "test-fs-copyfile.js", + "test-fs-empty-readStream.js", + "test-fs-mkdir.js", + "test-fs-open-flags.js", + "test-fs-open-mode-mask.js", + "test-fs-open-no-close.js", + "test-fs-open-numeric-flags.js", + "test-fs-open.js", + "test-fs-opendir.js", + "test-fs-read-stream-autoClose.js", + "test-fs-read-stream-concurrent-reads.js", + "test-fs-read-stream-double-close.js", + "test-fs-read-stream-encoding.js", + "test-fs-read-stream-fd.js", + "test-fs-read-stream-inherit.js", + "test-fs-read-stream-patch-open.js", + "test-fs-read-stream-resume.js", + "test-fs-read-stream-throw-type-error.js", + "test-fs-read-stream.js", + "test-fs-read-type.js", + "test-fs-read-zero-length.js", + "test-fs-read.js", + "test-fs-readdir-stack-overflow.js", + "test-fs-readdir.js", + "test-fs-readfile-empty.js", + "test-fs-realpath-native.js", + "test-fs-rmdir-recursive-sync-warns-not-found.js", + "test-fs-rmdir-recursive-sync-warns-on-file.js", + "test-fs-rmdir-recursive-throws-not-found.js", + "test-fs-rmdir-recursive-throws-on-file.js", + "test-fs-rmdir-recursive-warns-not-found.js", + "test-fs-rmdir-recursive-warns-on-file.js", + "test-fs-rmdir-recursive.js", + "test-fs-rmdir-type-check.js", + "test-fs-watchfile.js", + "test-fs-write-buffer.js", + "test-fs-write-file-buffer.js", + "test-fs-write-file-invalid-path.js", + "test-fs-write-file-sync.js", + "test-fs-write-file.js", + "test-fs-write-no-fd.js", + "test-fs-write-stream-autoclose-option.js", + "test-fs-write-stream-close-without-callback.js", + "test-fs-write-stream-double-close.js", + "test-fs-write-stream-end.js", + "test-fs-write-stream-fs.js", + "test-fs-write-stream-throw-type-error.js", + "test-fs-write-stream.js", + "test-fs-write-sync.js", + "test-fs-write.js", + "test-fs-writev-sync.js", + "test-handle-wrap-close-abort.js", + "test-http-agent-getname.js", + "test-http-client-get-url.js", + "test-http-client-read-in-error.js", + "test-http-localaddress.js", + "test-http-outgoing-buffer.js", + "test-http-outgoing-internal-headernames-getter.js", + "test-http-outgoing-internal-headernames-setter.js", + "test-http-outgoing-internal-headers.js", + "test-http-outgoing-message-inheritance.js", + "test-http-outgoing-renderHeaders.js", + "test-http-outgoing-settimeout.js", + "test-net-access-byteswritten.js", + "test-net-better-error-messages-listen-path.js", + "test-net-better-error-messages-path.js", + "test-net-better-error-messages-port-hostname.js", + "test-net-connect-after-destroy.js", + "test-net-connect-destroy.js", + "test-net-connect-immediate-destroy.js", + "test-net-connect-immediate-finish.js", + "test-net-connect-no-arg.js", + "test-net-dns-error.js", + "test-net-during-close.js", + "test-net-end-close.js", + "test-net-end-without-connect.js", + "test-net-isip.js", + "test-net-isipv4.js", + "test-net-isipv6.js", + "test-net-listen-close-server-callback-is-not-function.js", + "test-net-listen-close-server.js", + "test-net-listen-invalid-port.js", + "test-net-listening.js", + "test-net-localerror.js", + "test-net-options-lookup.js", + "test-net-pipe-connect-errors.js", + "test-net-server-listen-options-signal.js", + "test-net-server-listen-options.js", + "test-net-server-listen-path.js", + "test-net-server-listen-remove-callback.js", + "test-net-server-options.js", + "test-net-server-unref-persistent.js", + "test-net-server-unref.js", + "test-net-socket-destroy-twice.js", + "test-net-socket-no-halfopen-enforcer.js", + "test-net-timeout-no-handle.js", + "test-net-write-arguments.js", + "test-next-tick-doesnt-hang.js", + "test-next-tick-fixed-queue-regression.js", + "test-next-tick-intentional-starvation.js", + "test-next-tick-ordering.js", + "test-next-tick-ordering2.js", + "test-next-tick-when-exiting.js", + "test-next-tick.js", + "test-nodeeventtarget.js", + "test-outgoing-message-destroy.js", + "test-outgoing-message-pipe.js", + "test-path-basename.js", + "test-path-dirname.js", + "test-path-extname.js", + "test-path-isabsolute.js", + "test-path-join.js", + "test-path-makelong.js", + "test-path-normalize.js", + "test-path-parse-format.js", + "test-path-posix-exists.js", + "test-path-relative.js", + "test-path-resolve.js", + "test-path-win32-exists.js", + "test-path-zero-length-strings.js", + "test-path.js", + "test-process-beforeexit.js", + "test-process-binding-internalbinding-allowlist.js", + "test-process-env-allowed-flags.js", + "test-process-exit-from-before-exit.js", + "test-process-exit-handler.js", + "test-process-exit-recursive.js", + "test-process-exit.js", + "test-process-kill-pid.js", + "test-process-uptime.js", + "test-promise-unhandled-silent.js", + "test-promise-unhandled-throw-handler.js", + "test-querystring-escape.js", + "test-querystring-maxKeys-non-finite.js", + "test-querystring-multichar-separator.js", + "test-querystring.js", + "test-readline-emit-keypress-events.js", + "test-readline-interface-escapecodetimeout.js", + "test-readline-keys.js", + "test-readline-position.js", + "test-readline-reopen.js", + "test-readline-set-raw-mode.js", + "test-readline-undefined-columns.js", + "test-readline.js", + "test-stdin-from-file-spawn.js", + "test-stream-add-abort-signal.js", + "test-stream-aliases-legacy.js", + "test-stream-auto-destroy.js", + "test-stream-await-drain-writers-in-synchronously-recursion-write.js", + "test-stream-backpressure.js", + "test-stream-big-packet.js", + "test-stream-big-push.js", + "test-stream-buffer-list.js", + "test-stream-construct.js", + "test-stream-destroy-event-order.js", + "test-stream-duplex-destroy.js", + "test-stream-duplex-end.js", + "test-stream-duplex-from.js", + "test-stream-duplex-props.js", + "test-stream-duplex-readable-end.js", + "test-stream-duplex-writable-finished.js", + "test-stream-duplex.js", + "test-stream-end-paused.js", + "test-stream-error-once.js", + "test-stream-events-prepend.js", + "test-stream-inheritance.js", + "test-stream-ispaused.js", + "test-stream-objectmode-undefined.js", + "test-stream-once-readable-pipe.js", + "test-stream-pipe-after-end.js", + "test-stream-pipe-await-drain-manual-resume.js", + "test-stream-pipe-await-drain-push-while-write.js", + "test-stream-pipe-await-drain.js", + "test-stream-pipe-cleanup-pause.js", + "test-stream-pipe-cleanup.js", + "test-stream-pipe-error-handling.js", + "test-stream-pipe-event.js", + "test-stream-pipe-flow-after-unpipe.js", + "test-stream-pipe-flow.js", + "test-stream-pipe-manual-resume.js", + "test-stream-pipe-multiple-pipes.js", + "test-stream-pipe-needDrain.js", + "test-stream-pipe-same-destination-twice.js", + "test-stream-pipe-unpipe-streams.js", + "test-stream-pipe-without-listenerCount.js", + "test-stream-pipeline-async-iterator.js", + "test-stream-pipeline-queued-end-in-destroy.js", + "test-stream-pipeline-with-empty-string.js", + "test-stream-push-strings.js", + "test-stream-readable-aborted.js", + "test-stream-readable-add-chunk-during-data.js", + "test-stream-readable-constructor-set-methods.js", + "test-stream-readable-data.js", + "test-stream-readable-destroy.js", + "test-stream-readable-didRead.js", + "test-stream-readable-emit-readable-short-stream.js", + "test-stream-readable-emittedReadable.js", + "test-stream-readable-end-destroyed.js", + "test-stream-readable-ended.js", + "test-stream-readable-error-end.js", + "test-stream-readable-event.js", + "test-stream-readable-flow-recursion.js", + "test-stream-readable-hwm-0-async.js", + "test-stream-readable-hwm-0-no-flow-data.js", + "test-stream-readable-hwm-0.js", + "test-stream-readable-infinite-read.js", + "test-stream-readable-invalid-chunk.js", + "test-stream-readable-needReadable.js", + "test-stream-readable-next-no-null.js", + "test-stream-readable-no-unneeded-readable.js", + "test-stream-readable-object-multi-push-async.js", + "test-stream-readable-pause-and-resume.js", + "test-stream-readable-readable-then-resume.js", + "test-stream-readable-readable.js", + "test-stream-readable-reading-readingMore.js", + "test-stream-readable-resume-hwm.js", + "test-stream-readable-resumeScheduled.js", + "test-stream-readable-setEncoding-existing-buffers.js", + "test-stream-readable-setEncoding-null.js", + "test-stream-readable-unshift.js", + "test-stream-readable-with-unimplemented-_read.js", + "test-stream-readableListening-state.js", + "test-stream-transform-callback-twice.js", + "test-stream-transform-constructor-set-methods.js", + "test-stream-transform-destroy.js", + "test-stream-transform-final-sync.js", + "test-stream-transform-final.js", + "test-stream-transform-flush-data.js", + "test-stream-transform-objectmode-falsey-value.js", + "test-stream-transform-split-highwatermark.js", + "test-stream-transform-split-objectmode.js", + "test-stream-uint8array.js", + "test-stream-unpipe-event.js", + "test-stream-unshift-empty-chunk.js", + "test-stream-unshift-read-race.js", + "test-stream-writable-change-default-encoding.js", + "test-stream-writable-clear-buffer.js", + "test-stream-writable-constructor-set-methods.js", + "test-stream-writable-decoded-encoding.js", + "test-stream-writable-destroy.js", + "test-stream-writable-end-cb-error.js", + "test-stream-writable-end-multiple.js", + "test-stream-writable-ended-state.js", + "test-stream-writable-finish-destroyed.js", + "test-stream-writable-finished-state.js", + "test-stream-writable-finished.js", + "test-stream-writable-invalid-chunk.js", + "test-stream-writable-needdrain-state.js", + "test-stream-writable-null.js", + "test-stream-writable-properties.js", + "test-stream-writable-writable.js", + "test-stream-writable-write-cb-error.js", + "test-stream-writable-write-cb-twice.js", + "test-stream-writable-write-error.js", + "test-stream-writable-write-writev-finish.js", + "test-stream-writableState-ending.js", + "test-stream-writableState-uncorked-bufferedRequestCount.js", + "test-stream-write-destroy.js", + "test-stream-write-drain.js", + "test-stream-write-final.js", + "test-stream-writev.js", + "test-stream2-base64-single-char-read-end.js", + "test-stream2-basic.js", + "test-stream2-compatibility.js", + "test-stream2-decode-partial.js", + "test-stream2-finish-pipe.js", + "test-stream2-large-read-stall.js", + "test-stream2-objects.js", + "test-stream2-pipe-error-handling.js", + "test-stream2-pipe-error-once-listener.js", + "test-stream2-push.js", + "test-stream2-read-sync-stack.js", + "test-stream2-readable-empty-buffer-no-eof.js", + "test-stream2-readable-from-list.js", + "test-stream2-readable-legacy-drain.js", + "test-stream2-readable-non-empty-end.js", + "test-stream2-readable-wrap-destroy.js", + "test-stream2-readable-wrap-empty.js", + "test-stream2-readable-wrap-error.js", + "test-stream2-readable-wrap.js", + "test-stream2-set-encoding.js", + "test-stream2-transform.js", + "test-stream2-unpipe-drain.js", + "test-stream2-unpipe-leak.js", + "test-stream2-writable.js", + "test-stream3-cork-end.js", + "test-stream3-cork-uncork.js", + "test-stream3-pause-then-read.js", + "test-streams-highwatermark.js", + "test-timers-api-refs.js", + "test-timers-args.js", + "test-timers-clear-null-does-not-throw-error.js", + "test-timers-clear-object-does-not-throw-error.js", + "test-timers-clear-timeout-interval-equivalent.js", + "test-timers-clearImmediate.js", + "test-timers-interval-throw.js", + "test-timers-non-integer-delay.js", + "test-timers-refresh.js", + "test-timers-same-timeout-wrong-list-deleted.js", + "test-timers-timeout-with-non-integer.js", + "test-timers-uncaught-exception.js", + "test-timers-unref-throw-then-ref.js", + "test-timers-user-call.js", + "test-timers-zero-timeout.js", + "test-url-domain-ascii-unicode.js", + "test-url-fileurltopath.js", + "test-url-format-invalid-input.js", + "test-url-format-whatwg.js", + "test-url-format.js", + "test-url-parse-format.js", + "test-url-parse-invalid-input.js", + "test-url-parse-query.js", + "test-url-pathtofileurl.js", + "test-url-relative.js", + "test-url-urltooptions.js", + "test-util-deprecate-invalid-code.js", + "test-util-deprecate.js", + "test-util-format.js", + "test-util-inherits.js", + "test-util-inspect-long-running.js", + "test-util-inspect-namespace.js", + "test-util-inspect-proxy.js", + "test-util-inspect.js", + "test-util-isDeepStrictEqual.js", + "test-util-promisify.js", + "test-util-types-exists.js", + "test-util-types.js", + "test-util.js", + "test-vm-static-this.js", + "test-webcrypto-sign-verify.js", + "test-whatwg-encoding-custom-api-basics.js", + "test-whatwg-encoding-custom-fatal-streaming.js", + "test-whatwg-encoding-custom-textdecoder-fatal.js", + "test-whatwg-encoding-custom-textdecoder-ignorebom.js", + "test-whatwg-encoding-custom-textdecoder-streaming.js", + "test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js", + "test-whatwg-events-add-event-listener-options-passive.js", + "test-whatwg-events-add-event-listener-options-signal.js", + "test-whatwg-events-customevent.js", + "test-whatwg-url-custom-deepequal.js", + "test-whatwg-url-custom-domainto.js", + "test-whatwg-url-custom-global.js", + "test-whatwg-url-custom-href-side-effect.js", + "test-whatwg-url-custom-inspect.js", + "test-whatwg-url-custom-parsing.js", + "test-whatwg-url-custom-setters.js", + "test-whatwg-url-custom-tostringtag.js", + "test-whatwg-url-override-hostname.js", + "test-whatwg-url-properties.js", + "test-whatwg-url-toascii.js", + "test-zlib-close-after-error.js", + "test-zlib-close-after-write.js", + "test-zlib-convenience-methods.js", + "test-zlib-deflate-raw-inherits.js", + "test-zlib-destroy-pipe.js", + "test-zlib-empty-buffer.js", + "test-zlib-from-string.js", + "test-zlib-invalid-input.js", + "test-zlib-no-stream.js", + "test-zlib-random-byte-pipes.js", + "test-zlib-sync-no-event.js", + "test-zlib-truncated.js", + "test-zlib-unzip-one-byte-chunks.js", + "test-zlib-write-after-end.js", + "test-zlib-write-after-flush.js", + "test-zlib-zero-byte.js", + "test-zlib-zero-windowBits.js" + ], + "pseudo-tty": [ + "console-dumb-tty.js", + "console_colors.js", + "no_dropped_stdio.js", + "no_interleaved_stdio.js", + "test-tty-color-support-warning-2.js", + "test-tty-color-support-warning.js", + "test-tty-stdin-end.js", + "test-tty-stdout-end.js" + ], + "pummel": [], + "sequential": [ + "test-child-process-exit.js" + ] + }, + "windowsIgnore": { + "parallel": [ + "test-child-process-exec-abortcontroller-promisified.js", + "test-console-log-throw-primitive.js", + "test-console-no-swallow-stack-overflow.js", + "test-console-sync-write-error.js", + "test-dns.js", + "test-dns-resolveany.js", + "test-fs-access.js", + "test-fs-mkdir.js", + "test-fs-open-mode-mask.js", + "test-fs-readdir-stack-overflow.js", + "test-fs-rm.js", + "test-fs-watchfile.js", + "test-fs-write-file-invalid-path.js", + "test-fs-write-file-sync.js", + "test-fs-write-file.js", + "test-http-client-get-url.js", + "test-http-client-reject-cr-no-lf.js", + "test-net-allow-half-open.js", + "test-net-better-error-messages-listen-path.js", + "test-net-better-error-messages-path.js", + "test-net-pipe-connect-errors.js", + "test-net-server-listen-path.js", + "test-net-socket-close-after-end.js", + "test-util-inspect-long-running.js", + "test-util-inspect.js" + ] + }, + "darwinIgnore": { + "parallel": [ + "test-net-allow-half-open.js", + "test-net-socket-close-after-end.js" + ] + }, + "suitesFolder": "test", + "versionsFolder": "versions" +} diff --git a/cli/tests/node_compat/test/parallel/test-child-process-can-write-to-stdout.js b/cli/tests/node_compat/test/parallel/test-child-process-can-write-to-stdout.js deleted file mode 100644 index 11dbf9bcb..000000000 --- a/cli/tests/node_compat/test/parallel/test-child-process-can-write-to-stdout.js +++ /dev/null @@ -1,29 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -// Copyright Joyent and Node contributors. All rights reserved. MIT license. -// Taken from Node 18.12.1 -// This file is automatically generated by "node/_tools/setup.ts". Do not modify this file manually - -'use strict'; -// Tests that a spawned child process can write to stdout without throwing. -// See https://github.com/nodejs/node-v0.x-archive/issues/1899. - -require('../common'); -const fixtures = require('../common/fixtures'); -const assert = require('assert'); -const spawn = require('child_process').spawn; - -const child = spawn(process.argv[0], [ - fixtures.path('GH-1899-output.js'), -]); -let output = ''; - -child.stdout.on('data', function(data) { - output += data; -}); - -child.on('exit', function(code, signal) { - assert.strictEqual(code, 0); - assert.strictEqual(output, 'hello, world!\n'); -}); diff --git a/cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js b/cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js deleted file mode 100644 index fe3e8765e..000000000 --- a/cli/tests/node_compat/test/parallel/test-child-process-execFile-promisified-abortController.js +++ /dev/null @@ -1,66 +0,0 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file - -// Copyright Joyent and Node contributors. All rights reserved. MIT license. -// Taken from Node 18.12.1 -// This file is automatically generated by "node/_tools/setup.ts". Do not modify this file manually - -// TODO(PolarETech): The args passed to promisified() should not need to -// include "require.ts". - -'use strict'; - -const common = require('../common'); -const assert = require('assert'); -const { promisify } = require('util'); -const execFile = require('child_process').execFile; -const fixtures = require('../common/fixtures'); - -const echoFixture = fixtures.path('echo.js'); -const promisified = promisify(execFile); -const invalidArgTypeError = { - code: 'ERR_INVALID_ARG_TYPE', - name: 'TypeError' -}; - -{ - // Verify that the signal option works properly - const ac = new AbortController(); - const signal = ac.signal; - const promise = promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }); - - ac.abort(); - - assert.rejects( - promise, - { name: 'AbortError' } - ).then(common.mustCall()); -} - -{ - // Verify that the signal option works properly when already aborted - const signal = AbortSignal.abort(); - - assert.rejects( - promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }), - { name: 'AbortError' } - ).then(common.mustCall()); -} - -{ - // Verify that if something different than Abortcontroller.signal - // is passed, ERR_INVALID_ARG_TYPE is thrown - const signal = {}; - assert.throws(() => { - promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }); - }, invalidArgTypeError); -} - -{ - // Verify that if something different than Abortcontroller.signal - // is passed, ERR_INVALID_ARG_TYPE is thrown - const signal = 'world!'; - assert.throws(() => { - promisified(process.execPath, ['require.ts', echoFixture, 0], { signal }); - }, invalidArgTypeError); -} -- cgit v1.2.3