Repository navigation
test: add node:test coverage for active-note windowing/sustain fade logic - #17
Merged
Merged
Conversation
…ogic Node-only module.exports hook wraps the playSong-hooking IIFE in an else-branch, mirroring the sectionmap plugin's pattern. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughscreen.js adds a conditional Node/CommonJS export of the internal _fbGetActiveNotes helper, wrapping existing browser-only Hooks initialization in an else branch. A new test file, tests/screen.test.js, adds Node-based test coverage for note/chord activation, sustain behavior, iteration guards, and edge cases. ChangesNode export and test coverage for _fbGetActiveNotes
Estimated code review effort: 2 (Simple) | ~12 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Twenty-sixth repo from the org test-coverage audit. screen.js has no top-level wrapping IIFE for its function declarations; only the hooks block at the tail is wrapped. The module.exports hook wraps that block in an else-branch (same pattern as feedBack-plugin-sectionmap#9) so it never runs under Node.
10 tests against _fbGetActiveNotes, the function deciding which fretboard dots light up at a given playhead time:
🤖 Generated with Claude Code
Summary by CodeRabbit