Repository navigation
Split the long checks of the jetdb-wasm package test into smaller ones - #129
Merged
Merged
Conversation
…y check, to make them easier to read - Split checkRows into five: the rows of a table, reading a part at a time, CSV, complex columns, and binary and BigInt values - Split checkForms into four: the list and the properties, the controls, the streams, and a form and a report of the same name - Split checkProperties into two: a table, and the type option - Read the va 8000 lue of a property with one function, propertyValue, rather than the same closure in two places Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
CoverageFor 11a56b9. |
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.
Summary
crates/jetdb-wasm/tests/smoke.mjs, whichscripts/test-wasm-package.shruns against the Node.js and web builds of the package, were above the complexity thresholds ofscripts/quality-check.sh(CC ≥ 10, cognitive ≥ 10 or SLOC ≥ 50). Each is now split into a function for each thing it checks, called bycheck()in the same order, and none of them is above the thresholds.propertyValue.checkRowscheckFormscheckProperties🤖 Generated with Claude Code