-
-
Notifications
You must be signed in to change notification settings - Fork 319
Open
Description
The following files have relatively low branch and function coverage:
A lot of helper methods and error-handling branches are currently not exercised by the existing test suite:
- Context.js: validation helpers, duplicate/empty context checks, and error paths in methods like
loadContext,addContext,removeContext, andsetCurrentContext. - Studio.js: early returns in
start(), path validation logic (isValidFilePath), and branches in file read/write helpers.
Improving coverage here would strengthen confidence in edge cases and reduce the risk of regressions.
Steps to Reproduce:
npx nyc npm testnpx nyc report --reporter=htmlstart coverage/index.html- In the report, navigate to
lib/domains/models - Navigate to
Context.js,Studio.js,Preview.js,SpecificationFile.js
Happy to raise a PR for this if the maintainers approve
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To Triage