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

Dev/upgrade react markdown version #445

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

YextSLu
Copy link

@YextSLu YextSLu commented Jul 8, 2024

  • Upgraded react-markdown version to 8.0.7
  • Created mocked component <ReactMarkdown> to circumvent cannot load ES module issues when doing jest tests

J=CLIP-1321
TEST=manual|auto

Ran npm run test and npm run build to ensure no errors

YextSLu added 2 commits July 5, 2024 16:47
J=CLIP-1321
TEST=auto

`npm run test` to ensure all tests pass with new mocked version of markdown
J=CLIP-1321
TEST=auto

`npm run test` to ensure all tests pass with new mocked version of markdown
@YextSLu YextSLu requested a review from a team as a code owner July 8, 2024 14:12
Copy link
Contributor

github-actions bot commented Jul 8, 2024

Current unit coverage is 92.17687074829932%
Current visual coverage is 79.31671283471837%
Current combined coverage is 92.66634288489558%

@coveralls
Copy link

coveralls commented Jul 8, 2024

Coverage Status

coverage: 85.282%. remained the same
when pulling 35e7cc3 on dev/upgrade-react-markdown-version
into 34f207c on develop.

@EmilyZhang777
Copy link
Contributor

I'd recommend manual testing a markdown field gets rendered properly after this change. You can follow the instruction here: https://docs.google.com/document/d/1EusosNnvHpT_J3RvTnz1IjnQBGQ_unnI7tfBJFoRzQA/edit

J=CLIP-1321
TEST=auto

`npm run test` to ensure all tests pass with new mocked version of markdown
@YextSLu
Copy link
Author

YextSLu commented Jul 15, 2024

Example usage of markdown added to test-site. However, we have compatibility issues as a result of the new version of react-markdown dropping support for commonjs, specifically when building inside test-site. Will revisit soon

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.

3 participants