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(react): add vitest #1017

Merged
merged 15 commits into from
Feb 21, 2024
Merged

feat(react): add vitest #1017

merged 15 commits into from
Feb 21, 2024

Conversation

jul-lam
Copy link
Collaborator

@jul-lam jul-lam commented Dec 21, 2023

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (yarn build) was run locally and any changes were pushed
  • Unit tests (yarn test) were run locally and passed
  • Visual Regression Tests (yarn visual-regression) were run locally and passed
  • Linting (npm lint) was run locally and passed

Note: Tests have been added for the issues #944 and #945. Since the fix for these two hasn't been merged yet the tests of this branch will fail. So this PR is dependant on the merge of PR #1001.

Pull request type

Please check the type of change your PR introduces:

  • Bug fix
  • Feature
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

GitHub Issue Number: N/A

React components can now be tested with Jest.

What is the new behavior?

React components could not be tested.

Does this introduce a breaking change?

  • Yes
  • No

Testing

Manual testing of the relevant parts.

Other information

I decided to choose babel-jest over ts-jest. The reason is that babel-jest turned out to be easier to setup for me in this specific case.

@jul-lam jul-lam self-assigned this Dec 21, 2023
@jul-lam jul-lam closed this Dec 21, 2023
@jul-lam jul-lam reopened this Dec 21, 2023
@jul-lam jul-lam marked this pull request as draft December 21, 2023 09:23
@jul-lam jul-lam marked this pull request as ready for review December 21, 2023 12:55
@danielleroux danielleroux added this to the 2.2.0 milestone Jan 8, 2024
@jul-lam jul-lam mentioned this pull request Feb 14, 2024
14 tasks
@danielleroux danielleroux changed the title feat(react): add jest feat(react): add vitest Feb 21, 2024
@danielleroux danielleroux merged commit 92cfe01 into main Feb 21, 2024
6 checks passed
@danielleroux danielleroux deleted the feat/add-jest-to-react branch February 21, 2024 15:03
@danielleroux danielleroux modified the milestones: 2.2.0, 2.1.1 Feb 21, 2024
@danielleroux danielleroux added the pull request affects patch version The pull request affects only patch version label Feb 21, 2024
@nuke-ellington nuke-ellington mentioned this pull request Feb 21, 2024
3 tasks
danielleroux added a commit to danielleroux/ix that referenced this pull request Feb 22, 2024
Co-authored-by: Daniel Leroux <daniel.leroux@siemens.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull request affects patch version The pull request affects only patch version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants