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

Upgrade Storybook and its dependencies (including @babel/traverse) #316

Merged
merged 5 commits into from
Oct 20, 2023

Conversation

meisekimiu
Copy link
Member

Dependabot created an automatic pull request to bump some vulnerabilities, specifically the @babel/traverse package. Unfortunately, it just bumped the Storybook versions somewhat naively and the resulting PR actually ended up breaking Storybook.

Storybook provides an easier and more comprehensive way to upgrade it by providing an upgrade script. So let's run the provided upgrade script instead.

Also, as part of quarterly goal, I have increased test coverage slightly by adding some tests to the AnnouncementComponent, because we have to start increasing test coverage somewhere.

Closes #315.

Dependabot created an automatic pull request to bump some
vulnerabilities, specifically the @babel/traverse package.
Unfortunately, it just bumped the Storybook versions somewhat naively
and the resulting PR actually ended up breaking Storybook.

Instead, run the Storybook upgrade script with the following command:

`npx storybook@latest upgrade`

This upgraded all Storybook packages and dependencies, and also ran
relevant automigrations so Storybook can continue to work.

Original Dependabot PR: #315
As part of a quarterly goal to raise test coverage, add some tests so
that this PR increases test coverage.

These two tests cover some code that was originally untested in the
AnnouncementComponent. The code adjusts various elements on the page
when the announcement appoint appears and disappears, and this was
originally written as a quick fix that probably wasn't deemed testable
at the time.

However, shallow-render allows us to render additional HTML in the page
besides our component, so we can add in some external divs to be
adjusted by the AnnouncementComponent for testing.
The tests were modified, so let's run Prettier on the entire component
code as well.
This was included accidentally in the codecov change. Undo it so that
coverage is only generated when we ask for it.
@meisekimiu meisekimiu force-pushed the dependabot-babel-traverse-storybook branch from 42fb075 to a98628b Compare October 20, 2023 15:33
@meisekimiu meisekimiu added the dependencies Pull requests that update a dependency file label Oct 20, 2023
@meisekimiu meisekimiu marked this pull request as ready for review October 20, 2023 15:36
@meisekimiu meisekimiu merged commit 058fab5 into main Oct 20, 2023
2 checks passed
@meisekimiu meisekimiu deleted the dependabot-babel-traverse-storybook branch October 20, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants