test: harden test suite with mutation testing - #10
Open
jonmumm wants to merge 10 commits into
Open
Conversation
- Set up Stryker mutation testing with vitest runner - Upgrade vitest from 1.x to 2.x across all packages - Fix vi.fn() type signatures for vitest 2.x compatibility - Add lcov coverage reporters for CRAP score calculation - Configure Husky pre-commit hooks with lint-staged + prettier - Add vitest workspace config and turbo task definitions - Add prettier config for consistent formatting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Target mutants in dispatch/event listener path: - L46: instanceof Promise check for sync listeners - L62/L73: stateChanged flag initialization and guard - L63: config.producer truthiness check - L67: nextState !== currentState reference equality - L102: event listener cleanup on unsubscribe Also fix Stryker config to resolve typescript checker plugin loading issues by disabling the checker and using explicit plugin list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Target message validation guards, BRIDGE_READY STATE_INIT message type, postMessage guard paths, and WebView-without-postMessage tolerance. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Target isSupported return value, nativeEvent message format, STATE_UPDATE broadcast content/type, getReadyState null guard. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
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
Mutation testing results (so far — swarm still running)
app-bridge-nativecreateStore: +5 tests, 7 mutants killedapp-bridge-nativecreateNativeBridge: +12 tests, 23 mutants killedapp-bridge-reactcreateBridgeContext: +6 tests, 3 mutants killedTooling added
pnpm test:mutate:incremental)Test plan
pnpm test)pnpm build)🤖 Generated with Claude Code using the Swarm skill