Skip to content

[Bug]musicutils.js has zero Jest test coverage — regression risk for core music functions #6469

@swapnachoudhary43

Description

@swapnachoudhary43

Description

musicutils.js (js/utils/musicutils.js) has 0% Jest test coverage.
This file contains core music utility functions used throughout
Music Blocks including mode definitions, pitch calculations, and
interval logic. Without coverage, regressions enter production silently.

Expected Behavior

js/tests/musicutils.test.js should exist with Jest tests covering
core functions — mode/scale utilities, pitch calculations, interval
helpers, and exported constants used across the codebase.

How to Reproduce

  1. Clone the repo
  2. Run: npm test -- --coverage
  3. Open coverage report
  4. Observe that js/utils/musicutils.js shows 0% coverage

Console log Errors:

Not applicable.

Environment:

Operating System: Windows 11
Browser: Chrome
Version of Software/Project: master branch

Checklist

✅ I have read and followed the project's code of conduct.
✅ I have searched for similar issues before creating this one.
✅ I have provided all the necessary information to understand and reproduce the issue.
✅ I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions