Repository navigation
fix(node): missing statfs export from node:fs/promises - #31528
Conversation
WalkthroughThis PR adds the missing Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tests/unit_node/fs_test.ts (1)
187-192: Consider verifying the return value.The test confirms
statfsis callable, which satisfies the PR objective. Optionally, you could assert the return value has expected properties likebsize,blocks, etc. to ensure it's working correctly.Example enhancement:
Deno.test( "[node/fs/promises statfs] export statfs function", async () => { - await statfs(import.meta.filename!); + const result = await statfs(import.meta.filename!); + assert(typeof result.bsize === "number"); + assert(typeof result.blocks === "number"); }, );
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
ext/node/polyfills/fs/promises.ts(1 hunks)tests/unit_node/fs_test.ts(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}
📄 CodeRabbit inference engine (CLAUDE.md)
**/*.{ts,tsx,js}: For JavaScript runtime debugging, enable V8 inspector with--inspect-brkflag and connect Chrome DevTools tochrome://inspect
Useconsole.log()for debug prints in JavaScript runtime code
Files:
ext/node/polyfills/fs/promises.tstests/unit_node/fs_test.ts
🧬 Code graph analysis (2)
ext/node/polyfills/fs/promises.ts (2)
ext/node/ops/fs.rs (1)
statfs(209-330)ext/node/polyfills/fs.ts (1)
statfs(419-419)
tests/unit_node/fs_test.ts (2)
ext/node/polyfills/fs/promises.ts (1)
statfs(19-19)ext/node/polyfills/fs.ts (1)
statfs(419-419)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: test debug windows-x86_64
- GitHub Check: bench release linux-x86_64
- GitHub Check: test debug linux-aarch64
- GitHub Check: test debug linux-x86_64
- GitHub Check: test release linux-x86_64
- GitHub Check: test debug macos-x86_64
- GitHub Check: test debug macos-aarch64
- GitHub Check: lint debug linux-x86_64
- GitHub Check: lint debug windows-x86_64
- GitHub Check: lint debug macos-x86_64
- GitHub Check: build libs
🔇 Additional comments (2)
ext/node/polyfills/fs/promises.ts (1)
19-19: LGTM - Export added correctly.The
statfsexport is properly placed alphabetically and follows the same pattern as all other exports in this file.tests/unit_node/fs_test.ts (1)
45-45: LGTM - Import added correctly.
We already had the functionality, we just didn't export it.
Fixes #31526