• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Khan / perseus / 5931935552
69%
main: 69%

Build:
Build:
LAST BUILD BRANCH: LC-1092
DEFAULT BRANCH: main
Ran 21 Aug 2023 10:10PM UTC
Jobs 2
Files 530
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Aug 2023 10:07PM UTC coverage: 69.307% (-0.04%) from 69.348%
5931935552

Pull #606

github

web-flow
Derive virtual keypad version (#684)

## Summary:

As I was integrating Perseus analytics in webapp, it became really difficult to work out how to provide the virtualKeypadVersion consistently when Perseus wasn't always providing it. After some thought, I figured out that we can pretty-reliably derive the keypad version. Given that we are actively moving to coalesce on a single keypad, I hope this is an acceptable approach for the short term. When we get to one keypad, we can delete this `virtualKeypadVersion` from the analytics anyways. 

Issue: LC-950

## Test plan:

✅ `yarn typecheck`
✅ `yarn test`

Author: jeremywiebe

Reviewers: nedredmond, SonicScrewdriver, handeyeco

Required Reviewers:

Approved By: nedredmond

Checks: ✅ finish_coverage, ✅ Publish npm snapshot (ubuntu-latest, 16.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Extract i18n strings (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ gerald

Pull Request URL: https://github.com/Khan/perseus/pull/684
Pull Request #606: Feature: Analytics

7625 of 16588 branches covered (45.97%)

Branch coverage included in aggregate %.

235 of 378 new or added lines in 19 files covered. (62.17%)

6 existing lines in 1 file now uncovered.

71380 of 97404 relevant lines covered (73.28%)

710.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx
1
0.0
0.0% packages/perseus-core/src/index.ts
1
79.9
0.2% packages/perseus/src/article-renderer.tsx
1
32.14
8.14% testing/test-dependencies.tsx
6
0.0
0.0% packages/perseus-editor/src/multirenderer-editor.tsx
13
0.0
0.0% packages/perseus-core/src/analytics.ts
49
0.0
0.0% packages/perseus/src/types.ts
71
0.0
0.0% packages/perseus/src/__testdata__/article-renderer.testdata.ts

Uncovered Existing Lines

Lines Coverage ∆ File
6
83.92
0.41% packages/perseus/src/item-renderer.tsx
Subprojects
ID Flag name Job ID Ran Files Coverage
1 cypress 5931935552.1 21 Aug 2023 10:10PM UTC 368
26.18
GitHub Action Run
2 jest 5931935552.2 21 Aug 2023 10:19PM UTC 525
63.24
GitHub Action Run
Source Files on build 5931935552
  • Tree
  • List 530
  • Changed 51
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #606
  • PR Base - main (#5895941529)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc