Merged
Conversation
Docstrings generation was requested by @hawkeyexl. * #151 (comment) The following files were modified: * `scripts/check-coverage-ratchet.js` * `src/resolvePaths.js` * `src/validate.js`
Contributor
Author
|
Important Review skippedCodeRabbit bot authored PR detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
hawkeyexl
approved these changes
Jan 7, 2026
hawkeyexl
added a commit
that referenced
this pull request
Jan 7, 2026
…151) * Add comprehensive tests for validation and transformation functions - Create a new test file `validate.test.js` to cover various scenarios for the `validate` and `transformToSchemaKey` functions. - Implement tests for input validation, including checks for missing, null, and empty schema keys, as well as missing or null objects. - Add tests to verify behavior when schemas are not found and for valid objects against defined schemas. - Include tests for invalid objects to ensure proper error handling and validation feedback. - Test backward compatibility by transforming v2 schemas to v3 and validating the results. - Ensure original objects remain unchanged after validation. - Cover transformation scenarios for various schema types, including config, context, and openApi transformations. - Implement error handling tests to confirm that invalid transformations throw appropriate errors. * Update coverage thresholds to ensure 100% coverage across all metrics - Set Lines coverage to 100% - Set Statements coverage to 100% - Set Branches coverage to 100% * Prettify the file * 📝 Add docstrings to `coverage` (#152) Docstrings generation was requested by @hawkeyexl. * #151 (comment) The following files were modified: * `scripts/check-coverage-ratchet.js` * `src/resolvePaths.js` * `src/validate.js` Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.
Docstrings generation was requested by @hawkeyexl.
The following files were modified:
scripts/check-coverage-ratchet.jssrc/resolvePaths.jssrc/validate.jsThese files were ignored
test/files.test.jstest/resolvePaths.test.jstest/validate.test.jsThese file types are not supported
.c8rc.json.claude/skills/tdd-coverage/SKILL.md.github/workflows/auto-dev-release.yml.github/workflows/npm-test.ymlAGENTS.mdCLAUDE.mdcoverage-thresholds.jsonpackage.jsonℹ️ Note