fix(subpath): correct exports type cast; add fast-check fuzz harness#20
Merged
Conversation
Record<string, string> was inaccurate; the loop reads .import and .types, which only exist on object conditions. Type it to match.
Asserts rgbToRgba throws only Error instances across 1000 arbitrary string inputs. Also credits OpenSSF Scorecard's Fuzzing check.
Version bump pulls schema URL to 2.4.13; reformatter wraps the Object.entries call to respect the configured line width.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 30 30
Lines 9839 9839
=========================================
Hits 9839 9839 🚀 New features to boost your workflow:
|
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.
Two changes on the test surface plus a housekeeping biome update.
Test code
test/subpathExports.test.ts:190— changeObject.entries<Record<string, string>>toObject.entries<{ import: string; types: string }>. The loop body reads.importand.types; the original cast lied about the shape. No runtime behavior change.test/fuzz.test.ts(new) — add afast-checkproperty test assertingrgbToRgbathrows onlyErrorinstances across 1000 arbitrary string inputs per run. Addsfast-check@4.7.0as a devDep. Credits OpenSSF Scorecard's Fuzzing check (currently 0/10; will flip on next scan).Tooling
@biomejs/biome2.4.12 → 2.4.13;bunx biome migrate --write(schema URL only); reformat the widenedObject.entriescall to respect the configured line width.Test results
472/472 passing (was 471); fuzz test runs in ~40ms. Full suite under 200ms. Coverage held at 100%.