fix(test): convert assert.ok to vitest expect in policies.test.js#752
Conversation
PR #356 added tests using node:assert which is not compatible with the vitest runner. Converts to vitest expect() to fix test-unit on main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe test file Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…IDIA#752) PR NVIDIA#356 added tests using node:assert which is not compatible with the vitest runner. Converts to vitest expect() to fix test-unit on main. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…IDIA#752) PR NVIDIA#356 added tests using node:assert which is not compatible with the vitest runner. Converts to vitest expect() to fix test-unit on main. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…IDIA#752) PR NVIDIA#356 added tests using node:assert which is not compatible with the vitest runner. Converts to vitest expect() to fix test-unit on main. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…IDIA#752) PR NVIDIA#356 added tests using node:assert which is not compatible with the vitest runner. Converts to vitest expect() to fix test-unit on main. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…IDIA#752) PR NVIDIA#356 added tests using node:assert which is not compatible with the vitest runner. Converts to vitest expect() to fix test-unit on main. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
PR #356 added tests using
node:assertwhich is incompatible with the vitest runner. This breakstest-uniton main and every open PR.Converts
assert.ok()to vitestexpect().toBeTruthy()/expect().toBe().Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit