-
Notifications
You must be signed in to change notification settings - Fork 26
#234 Upgrade Vitest libraries to latest version #235
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d1bae4f
chore: Upgrade vitest libraries to latest version
nevendyulgerov 547961e
fix: Fix ts error and set fixed version for actions/setup-node
nevendyulgerov 45b4427
feat(apps/web): Exclude additional folders and files for the coverage…
nevendyulgerov f942cc0
feat(apps/web): Exclude additional folders and files for the coverage…
nevendyulgerov e69d5f5
fixup! feat(apps/web): Exclude additional folders and files for the c…
nevendyulgerov 2dc7453
fixup! feat(apps/web): Exclude additional folders and files for the c…
nevendyulgerov acbf30f
chore: Update yarn.lock
nevendyulgerov acb984d
test(apps/web): Fix failing tests
nevendyulgerov c4a3421
feat: Add @vitest/ui package and yarn script
nevendyulgerov 47ac36d
feat: Use istanbul for coverage reporter
nevendyulgerov e06ed12
fixup! feat: Use istanbul for coverage reporter
nevendyulgerov b217ac2
feat: Revert back to v8 for coverage reporter
nevendyulgerov 51f3048
feat: Apply ignoreEmptyLines setting for vitest coverage
nevendyulgerov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,7 +58,7 @@ describe("connectionForm", () => { | |
| ).toBeInTheDocument(); | ||
|
|
||
| expect(screen.getByTestId("icon-test-inactive")).toBeInTheDocument(); | ||
| expect(screen.getByText("Save")).toBeInTheDocument(); | ||
| expect(screen.getByTestId("connection-save")).toBeInTheDocument(); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More tests started failing after the latest rebase. Probably something in |
||
| }); | ||
|
|
||
| it("should present a list of applications suggestions when click on address input", () => { | ||
|
|
@@ -229,7 +229,7 @@ describe("connectionForm", () => { | |
|
|
||
| render(<AppConnectionFormE />); | ||
|
|
||
| fireEvent.click(screen.getByText("Save")); | ||
| fireEvent.click(screen.getByTestId("connection-save")); | ||
|
|
||
| expect( | ||
| screen.getByText("Address is a required field!"), | ||
|
|
@@ -277,7 +277,7 @@ describe("connectionForm", () => { | |
| screen.getByText("This application responded with"), | ||
| ).toBeInTheDocument(); | ||
|
|
||
| fireEvent.click(screen.getByText("Save")); | ||
| fireEvent.click(screen.getByTestId("connection-save")); | ||
|
|
||
| expect(addConnection).toHaveBeenCalledWith( | ||
| { address, url }, | ||
|
|
@@ -324,7 +324,7 @@ describe("connectionForm", () => { | |
| screen.getByText("This application responded with"), | ||
| ).toBeInTheDocument(); | ||
|
|
||
| fireEvent.click(screen.getByText("Save")); | ||
| fireEvent.click(screen.getByTestId("connection-save")); | ||
|
|
||
| expect(addConnection).toHaveBeenCalledWith( | ||
| { address, url }, | ||
|
|
@@ -371,7 +371,7 @@ describe("connectionForm", () => { | |
| screen.getByText("This application responded with"), | ||
| ).toBeInTheDocument(); | ||
|
|
||
| fireEvent.click(screen.getByText("Save")); | ||
| fireEvent.click(screen.getByTestId("connection-save")); | ||
|
|
||
| expect(addConnection).toHaveBeenCalledTimes(0); | ||
| }); | ||
|
|
@@ -407,7 +407,7 @@ describe("connectionForm", () => { | |
| target: { value: url }, | ||
| }); | ||
|
|
||
| fireEvent.click(screen.getByText("Save")); | ||
| fireEvent.click(screen.getByTestId("connection-save")); | ||
|
|
||
| expect(addConnection).not.toHaveBeenCalled(); | ||
| expect(notificationsMock.show).toHaveBeenCalledWith({ | ||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this package so that we can use the Vitest UI if we want with the
yarn test:uiscript.