Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(site): upgrade msw to 2.0#12597

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 16 commits intomainfrombq/upgrade-msw
Mar 19, 2024
Merged

chore(site): upgrade msw to 2.0#12597

BrunoQuaresma merged 16 commits intomainfrombq/upgrade-msw
Mar 19, 2024

Conversation

BrunoQuaresma
Copy link
Collaborator

Closes#11426

@BrunoQuaresmaBrunoQuaresma requested review fromParkreiner anda teamMarch 14, 2024 15:06
@BrunoQuaresmaBrunoQuaresma self-assigned thisMar 14, 2024
// TODO: This test is timing out after upgrade a few Jest dependencies
// and I was not able to figure out why. When running it specifically, I
// can see many act warnings that may can help us to find the issue.
"/usePaginatedQuery.test.ts",
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

@Parkreiner I may need your help with this 🙏 I created a separated issue to not block this one#12598

Parkreiner reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

No worries! Happy to take a look tomorrow after Backstage launch

BrunoQuaresma reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

rather than temporarily ignore the file, can we usetest.failing on the tests in the file?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I didn't realize that was an option. Definitely think we should go with that

Copy link
Member

Choose a reason for hiding this comment

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

Parkreiner reacted with heart emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

For some reason,describe.skip ortest.failure are not working 😢 it just hangs forever

Screen.Recording.2024-03-14.at.14.54.43.mov

Ps: I tried to post a longer video but GH didn't allow me because of the size.

Copy link
Member

Choose a reason for hiding this comment

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

that's annoying... what happens if you add an empty non-skipped test?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

it just hangs... I think there is some weird thing happening on this test 🤔

@@ -37,7 +37,7 @@ function render<
* There are a lot of test cases in this file. Scoping mocking to inner describe
* function calls to limit the cognitive load of maintaining all this stuff
*/
describe(usePaginatedQuery.name, () => {
describe.skip(usePaginatedQuery.name, () => {
Copy link
Member

Choose a reason for hiding this comment

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

nit: maybe you can just importskip?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Let me see if that works

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

skip is not exported directly. It needs to be used withdescribe,test, orit but something is preventing this to be working properly. I think Kayla found a similar issues on this PR#12538

mtojek reacted with thumbs up emoji
Copy link
Member

@ParkreinerParkreiner left a comment
edited
Loading

Choose a reason for hiding this comment

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

Big fan of the cleaner API – thanks for handling the upgrade!

I think everything looks good enough to ship, but I did have one comment about a test case possibly relying too much on MSW implementation details

BrunoQuaresma reacted with heart emoji
@BrunoQuaresmaBrunoQuaresmaenabled auto-merge (squash)March 18, 2024 14:18
@BrunoQuaresmaBrunoQuaresma merged commit23e3e4c intomainMar 19, 2024
@BrunoQuaresmaBrunoQuaresma deleted the bq/upgrade-msw branchMarch 19, 2024 12:30
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 19, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@ParkreinerParkreinerParkreiner approved these changes

@mtojekmtojekmtojek approved these changes

@aslilacaslilacAwaiting requested review from aslilac

@Kira-PilotKira-PilotAwaiting requested review from Kira-Pilot

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

upgrade msw
4 participants
@BrunoQuaresma@aslilac@mtojek@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp