1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 10:37:52 -05:00
denoland-deno/tests/unit_node
Marvin Hagemeister a2ca399227
fix(node): support tty.hasColors() and tty.getColorDepth() (#24619)
This PR adds support for
[`tty.WriteStream.prototype.hasColors()`](https://nodejs.org/api/tty.html#writestreamhascolorscount-env)
and
[`tty.WriteStream.prototype.getColorDepth()`](https://nodejs.org/api/tty.html#writestreamgetcolordepthenv).

I couldn't find any usage on GitHub which passes parameters to it.
Therefore I've skipped adding support for the `env` parameter to keep
our snapshot size small.

Based on https://github.com/denoland/deno_terminal/pull/3

Fixes https://github.com/denoland/deno/issues/24616
2024-07-22 22:47:58 +02:00
..
_fs fix(ext/node): Add Dirent.path and Dirent.parentPath (#24257) 2024-06-19 12:51:01 +05:30
crypto fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
internal fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
testdata fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
_test_utils.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
assert_test.ts fix(node/assert): throws not checking error instance (#24466) 2024-07-08 21:28:39 +02:00
assertion_error_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
async_hooks_test.ts fix(node): stub AsyncResource.emitDestroy() (#23802) 2024-05-15 00:42:43 +02:00
buffer_test.ts perf(ext/node): improve Buffer.from(buffer) (#24352) 2024-06-26 17:11:56 -04:00
child_process_test.ts fix(ext/node): support stdin: "inherit" in node:child_process (#23110) 2024-03-28 19:44:42 +05:30
console_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
dgram_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
domain_test.ts fix(ext/node): polyfill node:domain module (#23088) 2024-04-03 21:37:10 +02:00
events_test.ts fix(ext/node): implement EventEmitterAsyncResource (#22994) 2024-03-20 11:20:18 +05:30
fs_test.ts fix(ext/node/fs): position argument not applied (#24009) 2024-05-28 14:30:31 +02:00
http2_test.ts fix(std/http2): release window capacity back to remote stream (#24576) 2024-07-22 22:46:40 +02:00
http_test.ts fix(ext/node): http request uploads of subarray of buffer should work (#24603) 2024-07-22 22:47:08 +02:00
module_test.ts fix(node): stub findSourceMap for ava (#23899) 2024-05-20 16:42:42 +02:00
net_test.ts feat(ext/node): add BlockList & SocketAddress classes (#24229) 2024-06-18 10:46:13 +00:00
os_test.ts fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841) 2024-05-16 10:52:40 +05:30
path_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
perf_hooks_test.ts fix(node/perf_hooks): stub eventLoopUtilization (#24501) 2024-07-10 19:47:45 +02:00
process_test.ts fix(ext/node): make process.versions own property (#24240) 2024-06-18 16:33:03 +05:30
punycode_test.ts feat: TypeScript 5.4 (#23086) 2024-03-26 18:52:57 -04:00
querystring_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
readline_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
repl_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
stream_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
string_decoder_test.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
timers_test.ts fix(ext/node): spread args in setImmediate (#22998) 2024-03-20 07:52:50 +00:00
tls_test.ts fix(ext/node): Correctly send ALPN on node TLS connections (#23434) 2024-04-18 09:37:47 -06:00
tty_test.ts fix(node): support tty.hasColors() and tty.getColorDepth() (#24619) 2024-07-22 22:47:58 +02:00
util_test.ts fix: util.parseArgs() missing node:process import (#22405) 2024-02-18 07:30:27 -07:00
v8_test.ts fix(node): implement v8 serialize and deserialize (#22975) 2024-03-18 13:48:55 +05:30
vm_test.ts fix(ext/node): fix vm memory usage and context initialization (#23976) 2024-06-12 22:32:54 +05:30
worker_threads_test.ts fix(node): patch MessagePort in worker_thread message (#23871) 2024-05-20 15:01:40 +02:00
zlib_test.ts fix(ext/node): use cppgc for node:zlib (#24267) 2024-06-20 10:31:53 +05:30