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

add vitest #4982

Merged
merged 42 commits into from
Sep 3, 2024
Merged

add vitest #4982

merged 42 commits into from
Sep 3, 2024

Conversation

gyfchong
Copy link
Contributor

@gyfchong gyfchong commented Aug 29, 2024

Why

Jest bad, vitest good

What

Everything changed

@gyfchong gyfchong requested a review from a team as a code owner August 29, 2024 04:58
Copy link

changeset-bot bot commented Aug 29, 2024

🦋 Changeset detected

Latest commit: 5933bad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Aug 29, 2024

✨ Here is your branch preview! ✨

Last updated for commit 5933bad: isolate the node polyfills to storybook config

@gyfchong gyfchong marked this pull request as draft August 29, 2024 06:11
@gyfchong gyfchong marked this pull request as ready for review August 29, 2024 06:11
Geoffrey Chong and others added 7 commits August 29, 2024 16:18
* migrate text jest tests to vitest

* migrate heading jest tests to vitest

* migrate textfield jest tests to vitest

* migrate VideoPlayer jest tests to vitest and interactive stories

* remove test for pauseplay, replaced with stories

* replace GenericNotification jest tests to interaction stories

* convert MenuTriggerProvider from jest to vitest

* convert DateInputWithIconButton from jest to vitest

* moved TitleBlockZen survey status tests to storybook

* lint fix

* remove flaky snapshots

* fix flaky notification play test

* intro timeout to wait for animation

* fix lint

* intro timeout to wait for animation

* intro borders around the video player to showcase aspectratio

* exclude the pauseplay story from chromatic

* exclude thee genericnotification interaction story from chromatic

* Update packages/components/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.stories.tsx

* fix videoplayer stickersheet

* update generic notification to a story

* Update packages/components/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.spec.tsx

Co-authored-by: Cassandra <[email protected]>

---------

Co-authored-by: Geoffrey Chong <[email protected]>
Co-authored-by: Cassandra <[email protected]>
@gyfchong gyfchong marked this pull request as draft August 30, 2024 06:23
@gyfchong gyfchong marked this pull request as ready for review August 30, 2024 07:50
Copy link
Contributor

@mcwinter07 mcwinter07 left a comment

Choose a reason for hiding this comment

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

Looks hunky dory, though we have these two workflow steps that seems like they're still require?
Screenshot 2024-09-02 at 11 52 00 am
I assume this is because ci.yml is now lint.yml and the job for test-stories has been broken into shards.

.eslintignore Outdated Show resolved Hide resolved
.github/workflows/test-stories.yaml Outdated Show resolved Hide resolved
.github/workflows/test-unit.yml Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
packages/components/svgoUtils.ts Outdated Show resolved Hide resolved
packages/components/svgo.spec.ts Outdated Show resolved Hide resolved
tsconfig.json Show resolved Hide resolved
vite.config.ts Show resolved Hide resolved
@gyfchong gyfchong marked this pull request as draft September 2, 2024 03:01
@gyfchong gyfchong marked this pull request as ready for review September 2, 2024 04:35
),
},
test: {
// TODO: Remove this when @HeartSquared fixes icons
Copy link
Contributor

Choose a reason for hiding this comment

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

Hahaha whaaaat 😂 I don't think we'd be removing the script until we actually delete the old icon, so it would still be relevant here

Copy link
Contributor

Choose a reason for hiding this comment

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

lul, doxed in code comments 😆

@gyfchong gyfchong marked this pull request as draft September 2, 2024 05:47
@gyfchong gyfchong marked this pull request as ready for review September 3, 2024 00:07
@gyfchong gyfchong merged commit a216c72 into main Sep 3, 2024
26 checks passed
@gyfchong gyfchong deleted the KZN-2614-new-jest-to-vitest branch September 3, 2024 01:16
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.

3 participants