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

Migrate tests #763

Merged
merged 23 commits into from
Jul 16, 2023
Merged

Migrate tests #763

merged 23 commits into from
Jul 16, 2023

Conversation

aashu16
Copy link
Collaborator

@aashu16 aashu16 commented May 25, 2023

The primary goals of this PR are:

  • Replace Karma/Jasmine with Vitest
  • Migrate tests from Enzyme to @testing-library/react

Checklist:

  • Configure vitest
  • Update test utils
  • Update test files
    • input_numeric_format
    • keypress_and_caret
    • utils
    • input
    • format_as_text
  • Remove packages that are no longer required - Karma, Jasmine, Enzyme + related dependencies

aashu16 added 2 commits May 25, 2023 10:16
@aashu16 aashu16 changed the title Migrate tests to Migrate tests May 25, 2023
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like this got staged and after that .yarn folder is added on gitignore. You will need to untrack the file.

Copy link
Collaborator Author

@aashu16 aashu16 Jun 10, 2023

Choose a reason for hiding this comment

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

Yarn docs recommend committing .yarn/releases to the repo. The reasoning behind this is:

You will want to keep them (.yarn/plugins and .yarn/releases) versioned (this prevents potential issues if, say, two engineers use different Yarn versions with different features).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The .yarn/releases directory contains whatever version of Yarn is being used. I can ignore it, but it is not recommended.

package.json Show resolved Hide resolved
@aashu16 aashu16 marked this pull request as ready for review July 16, 2023 10:58
@s-yadav
Copy link
Owner

s-yadav commented Jul 16, 2023

Merging this to the dev will work with main repo directly.

@s-yadav s-yadav merged commit 1e03f76 into s-yadav:dev Jul 16, 2023
@aashu16 aashu16 mentioned this pull request Jul 25, 2023
6 tasks
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