Add tests to reach full coverage #494
Open
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.
Motivation
paramStructurecases forJsonSchemaFakerRule.Description
src/reporters/emptyReporter.test.tsto exercise logging and summary paths forEmptyReporter.src/coverage.test.tswith tests that run rule lifecycle hooks, preserve existingtimings, verify transport failure handling (no validation on request error), and ensure lifecycle hooks are skipped whencall.ruleis removed by a reporter.JsonSchemaFakerRuleunit tests insrc/rules/json-schema-faker-rule.test.tsto coverskip/only, example-skipping, and non-by-nameparameter structures; updated test instantiations to pass fullRulesOptionswhere required.as any) were used to satisfy TypeScript shapes for synthetic test calls.Testing
npm test -- --coverageand all test suites passed (25 passed, 25 total).srcdirectory after the changes.npm run lint) executed as part of the npmtestscript without failing.Codex Task