Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MathJS to v12, update formula code to work with fixed special chars in MathJS, add unit tests #969

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

pjanik
Copy link
Member

@pjanik pjanik commented Oct 31, 2023

@kswenson mentioned that MathJS v11.12.0 is causing Cypress tests to break: #964

This issue happened due to a recent MathJS bug fix:

This PR removes some lines from formula-utils.ts that are no longer necessary. Additionally, I've added unit tests that would fail with MathJS < 11.12.0 and the new code, providing us with double coverage (not just relying on the Cypress tests that saved me before, thanks to @tejal-shah 😉).

@pjanik pjanik requested a review from kswenson October 31, 2023 20:23
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9091211) 84.09% compared to head (3984519) 84.09%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #969      +/-   ##
==========================================
- Coverage   84.09%   84.09%   -0.01%     
==========================================
  Files         327      327              
  Lines       13590    13588       -2     
  Branches     3625     3624       -1     
==========================================
- Hits        11429    11427       -2     
  Misses       2067     2067              
  Partials       94       94              
Flag Coverage Δ
cypress 72.03% <ø> (-0.01%) ⬇️
jest 61.31% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
v3/src/models/formula/formula-utils.ts 96.04% <ø> (-0.05%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kswenson kswenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@pjanik pjanik merged commit e51f9fc into main Nov 1, 2023
7 checks passed
@pjanik pjanik deleted the 186376342-special-chars-mathjs-12 branch November 1, 2023 09:37
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.

2 participants