[Tests] extract jest config to file, add jest commands, add mocks and add missing tests#1270
Merged
manojVivek merged 5 commits intoresponsively-org:mainfrom Aug 5, 2024
Merged
Conversation
9b5c087 to
db339fd
Compare
db339fd to
49c4050
Compare
added 3 commits
August 1, 2024 23:31
85bab0f to
f44028b
Compare
f44028b to
cada3b5
Compare
manojVivek
approved these changes
Aug 5, 2024
Collaborator
manojVivek
left a comment
There was a problem hiding this comment.
Looks great, thanks for following this up!
Contributor
Author
|
@all-contributors Please add @violetadev for test. |
Contributor
|
I've put up a pull request to add @violetadev! 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📓 Referenced Issue
ℹ️ About the PR
This PR does the following:
yarn test:watch yourfile.test.tsx-> it watches the test so when you save it runs it again automaticallyyarn test:coverage yourfolder/-> it checks what lines are lacking test coverage in which files✨ Pull Request
Extract jest config and add it to the script. It also adds yarn
test:watchto watch files while developing tests.Usage:
yarn test:watch desktop-app/src/renderer/components/DeviceManager/PreviewSuites/ManageSuitesTool/utils.test.ts🖼️ Testing Scenarios / Screenshots