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

Khan / perseus / 6149003698 / 1 – jest
69%
main: 69%

Build:
DEFAULT BRANCH: main
Ran 11 Sep 2023 04:24PM UTC
Files 527
Run time 15s
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

11 Sep 2023 04:14PM UTC coverage: 63.311% (-0.001%) from 63.312%
jest – 6149003698.1

push

github

web-flow
check for ResizeObserver before using it (#709)

## Summary:
This is basically the same thing they're doing in Webapp, I just didn't notice it before.

Issue: LC-1213

## Test plan:
Not really sure how to write tests for this...maybe I could mock the whole `window` object and just not include `ResizeObserver`? Originally I was going to do something like `window.ResizeObserver = undefined`, but interestingly:

``` JS
window.ResizeObserver = undefined
console.log("ResizeObserver" in window) // true
```

I was able to manually test with `delete`

``` JS
delete window.ResizeObserver
console.log("ResizeObserver" in window) // false
```

Just wasn't sure how to translate that to tests.

Manually testing the regression though:
- Use a mobile web browser or emulate mobile
- Use a browser that doesn't support ResizeObserver (Safari <13.1)
- Go to a page with an [Expression widget](https://www.khanacademy.org/internal-courses/test-everything/test-everything-1/expression/e/expression-exercise)
- Note that rendering the exercise doesn't result in an error

Author: handeyeco

Reviewers: jeremywiebe

Required Reviewers:

Approved By: jeremywiebe

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

Pull Request URL: https://github.com/Khan/perseus/pull/709

5776 of 7049 branches covered (0.0%)

Branch coverage included in aggregate %.

70488 of 113410 relevant lines covered (62.15%)

458.93 hits per line

Source Files on job jest - 6149003698.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 6149003698
  • 3afc0da2 on github
  • Prev Job for on main (#6148996521.1)
  • Next Job for on main (#6149013791.1)
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