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

feat(ui): Migrating UI tests to use bun instead. #1716

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

elliotcourant
Copy link
Member

No description provided.

Comment on lines 11 to 24
// const mockUseNavigate = mock((_url: string) => { });
// // jest.mock('react-router-dom', () => ({
// // __esModule: true,
// // ...jest.requireActual('react-router-dom'),
// // useNavigate: () => mockUseNavigate,
// // }));
//
// mock.module('react-router-dom', () => {
// return {
// // __esModule: true,
// // ...require('react-router-dom'),
// useNavigate: () => mockUseNavigate,
// };
// });
Copy link
Member Author

Choose a reason for hiding this comment

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

Still figuring out how to mock a hook from a module

@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.90%. Comparing base (8d6d757) to head (3be4e81).
Report is 19 commits behind head on main.

❗ Current head 3be4e81 differs from pull request most recent head cd6a233. Consider uploading reports for the commit cd6a233 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1716      +/-   ##
==========================================
+ Coverage   50.46%   55.90%   +5.43%     
==========================================
  Files         366      209     -157     
  Lines       20363    17871    -2492     
  Branches      500        0     -500     
==========================================
- Hits        10276     9990     -286     
+ Misses       9523     7308    -2215     
- Partials      564      573       +9     

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

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.

None yet

2 participants