1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/tests/node_compat
Nathan Whitaker dadc606419
fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172)
Part of #18218


- Adds `fs.lutimes` and `fs.lutimesSync` to our node polyfills. To do
this I added methods to the `FileSystem` trait + ops to expose the
functionality to JS.
- Exports `fs._toUnixTimestamp`. Node exposes an internal util
`toUnixTimestamp` from the fs module to be used by unit tests (so we
need it for the unit test to pass unmodified). It's weird because it's
only supposed to be used internally but it's still publicly accessible
- Matches up error handling and timestamp handling for fs.futimes and
fs.utimes with node
- Enables the node_compat utimes test - this exercises futimes, lutimes,
and utimes.
2024-07-02 19:33:32 -07:00
..
runner fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
test fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
.gitignore chore: sync up Node.js test files for v20.11.1 (#24066) 2024-06-11 11:41:44 +00:00
common.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
config.jsonc fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
deno.json chore: move test_util/std to tests/util/std (#22402) 2024-02-13 09:22:49 -07:00
polyfill_globals.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
runner.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
test.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
test_runner.rs test: fix node_compat_test (#23446) 2024-04-19 01:42:18 +02:00