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

Update dependency versions #141

Merged
merged 12 commits into from
Jan 24, 2024
Merged

Update dependency versions #141

merged 12 commits into from
Jan 24, 2024

Conversation

rnathuji
Copy link
Contributor

@rnathuji rnathuji commented Jan 23, 2024

This dependency update PR makes minimal changes to actual application dependencies, but there were major version upgrades to both vite and msw which took a bit of wrangling 😅 . A reviewer may want to walk through the commit history to better understand the scope/motivation behind specific changes. It should also be noted that the version of undici was purposefully not the latest as v6 seems to currently be problematic with msw, and that is the only reason the dependency was added per these docs.

This commit is expected to be reverted.

I'm temporarily downgrading the version of msw back to v1 to isolate
other dependency update issues so those can be resolved prior to
looking into updating to msw v2.
As part of migrating to vite v5, this change:

1. Renames the vite config to use .mts
2. Modifies the playwright configuration to use the webServer setting
   to launch vite's dev server via shell instead of via API using
   globalSetup. This is because the file referenced in the globalSetup
   is required / loaded as CJS.
This change includes some pretty hacky stuff to enable updating to
v2 of the msw library used by some of our tests. The documented
migration steps didn't work as adverised so I resorted to applying
work arounds discussed in GitHub issues. It's likely some of this may
need to get revisited in the future as the approach of the custom jest
resolver in particular feels pretty brittle.
@rnathuji rnathuji requested a review from a team January 23, 2024 23:05
@P-Gill97
Copy link
Contributor

Tested in my local environment. Looks good!

@rnathuji rnathuji merged commit 785ce8c into main Jan 24, 2024
3 checks passed
@rnathuji rnathuji deleted the k12-581/dependency-updates branch January 24, 2024 19:09
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