Skip to content

📝 Add docstrings to coverage#152

Merged
hawkeyexl merged 1 commit intocoveragefrom
coderabbitai/docstrings/f4a86c1
Jan 7, 2026
Merged

📝 Add docstrings to coverage#152
hawkeyexl merged 1 commit intocoveragefrom
coderabbitai/docstrings/f4a86c1

Conversation

@coderabbitai
Copy link
Contributor

@coderabbitai coderabbitai bot commented Jan 7, 2026

Docstrings generation was requested by @hawkeyexl.

The following files were modified:

  • scripts/check-coverage-ratchet.js
  • src/resolvePaths.js
  • src/validate.js
These files were ignored
  • test/files.test.js
  • test/resolvePaths.test.js
  • test/validate.test.js
These file types are not supported
  • .c8rc.json
  • .claude/skills/tdd-coverage/SKILL.md
  • .github/workflows/auto-dev-release.yml
  • .github/workflows/npm-test.yml
  • AGENTS.md
  • CLAUDE.md
  • coverage-thresholds.json
  • package.json
ℹ️ Note

CodeRabbit cannot perform edits on its own pull requests yet.

Docstrings generation was requested by @hawkeyexl.

* #151 (comment)

The following files were modified:

* `scripts/check-coverage-ratchet.js`
* `src/resolvePaths.js`
* `src/validate.js`
@coderabbitai
Copy link
Contributor Author

coderabbitai bot commented Jan 7, 2026

Important

Review skipped

CodeRabbit bot authored PR detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@hawkeyexl hawkeyexl merged commit 1b01e23 into coverage Jan 7, 2026
15 checks passed
@hawkeyexl hawkeyexl deleted the coderabbitai/docstrings/f4a86c1 branch January 7, 2026 22:42
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant