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

Khan / perseus / 5466665243 / 2 – jest
69%
main: 69%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2023 04:36PM UTC
Files 514
Run time 14s
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

05 Jul 2023 04:24PM UTC coverage: 62.645% (-0.4%) from 63.051%
jest – 5466665243.2

push

github

web-flow
Fix spurious KaTeX errors in the exercise editor (#592)

## Summary:
Previously, any use of `\ce` in a TeX expression resulted in the
exercise editor displaying a KaTeX error, even though the expression
preview rendered fine (and was in fact being rendered by KaTeX). This
was because the preview and the error pane were using different KaTeX
configurations. The preview had the mhchem extension installed, and the
error pane didn't.

This commit fixes the issue by adding mhchem to the error checker's
KaTeX.

Issue: https://khanacademy.atlassian.net/browse/LC-997

Test plan:

Install the dev version of Perseus in webapp.

Edit an exercise. Add the following TeX somewhere:

`$\ce{Ba}$`

You should see "Ba" rendered in an upright font in the preview. The
"KaTeX Errors" pane should not display.

Change the TeX to `$\mbox1$`. The "KaTeX Errors" pane *should* display
(KaTeX doesn't have an `\mbox` command). A "1" will be rendered in
the preview by the MathJax 2 fallback renderer.

Author: benchristel

Reviewers: nixterrimus

Required Reviewers:

Approved By: nixterrimus

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), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ Lint, Typecheck, and Test (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ gerald

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

5639 of 6811 branches covered (82.79%)

Branch coverage included in aggregate %.

68240 of 111122 relevant lines covered (61.41%)

462.36 hits per line

Source Files on job jest - 5466665243.2
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5466665243
  • f7af06d9 on github
  • Prev Job for on main (#5426252202.2)
  • Next Job for on main (#5477458285.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