Skip to content

test: improve unit test coverage for locator, stackTrace, and resolve-binary#158

Merged
gmegidish merged 1 commit into
mainfrom
test/improve-unit-test-coverage
May 27, 2026
Merged

test: improve unit test coverage for locator, stackTrace, and resolve-binary#158
gmegidish merged 1 commit into
mainfrom
test/improve-unit-test-coverage

Conversation

@gmegidish
Copy link
Copy Markdown
Member

Summary

  • Add tests for stackTrace.ts: filterStack (undefined input, MWDEBUGIMPL env var, framework frame filtering) and captureLocation — statement coverage 46% → 74%, function coverage 50% → 100%
  • Add tests for resolve-binary.ts: all five platform/arch mappings and unsupported-platform error — coverage 24% → 100%
  • Expand locator.test.ts with 23 new tests covering doubleTap, longPress, exists, isEnabled/isSelected/isFocused/isChecked, boundingBox, getValue, waitFor enabled/disabled states, scrollIntoViewIfNeeded, and screenshot — statement coverage 76% → 95%

Test Plan

  • npm run lint passes
  • Full test suite passes (263 passed, 1 skipped)
  • Coverage verified via npm run test:coverage

@gmegidish gmegidish merged commit a674beb into main May 27, 2026
6 checks passed
@gmegidish gmegidish deleted the test/improve-unit-test-coverage branch May 27, 2026 19:24
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