-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add vitest * add changeset * update design-tokens and isolate jest config * fix types * fixups * fix gha * attempt fix for cut off FilterDateRangePicker RTL stickersheet * test: add delay to RTL * KZN-2614-convert-remaining-jest-tests (#4985) * 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]> * new vitest eslint and config * fix eslint * remove test cache * fix turbo tests * unshard * unshard * sharded up * sharded up * sharded up * sharded up * unsharded * sharded up * update gha test stories with shard number * consolidated vite config * make expecific eslint exceptions in vitest setup file * consolidated naming of gha * revert errorpage test * remove useless delay * fix svgo + vite config * fixups * skip incompatible scgo test * revert removal of jest-dom * rename unit gha tests * fixups * revert jest-axe removal * add node ployfills to vite * isolate the node polyfills to storybook config --------- Co-authored-by: Geoffrey Chong <[email protected]> Co-authored-by: Cassandra <[email protected]>
- Loading branch information
1 parent
1054201
commit a216c72
Showing
130 changed files
with
2,189 additions
and
1,573 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: test unit | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
# When Changesets opens a PR it does not trigger GitHub actions, | ||
# because its token does not have permission to. This is a hack | ||
# to allow one of us to trigger GitHub actions for a changesets PR | ||
# by enabling automerge on the PR. | ||
pull_request_target: | ||
types: | ||
- auto_merge_enabled | ||
branches: | ||
- main # the target branch of the PR | ||
paths: | ||
- "**/CHANGELOG.md" # only changesets releases touch changelogs | ||
|
||
jobs: | ||
unit-tests: | ||
if: github.head_ref != 'changeset-release/main' | ||
name: "vitest" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Unit tests (1/3) | ||
run: pnpm test -- -- --run --shard=1/3 | ||
|
||
unit-tests-2: | ||
if: github.head_ref != 'changeset-release/main' | ||
name: "vitest" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Unit tests (2/3) | ||
run: pnpm test -- -- --run --shard=2/3 | ||
|
||
unit-tests-3: | ||
if: github.head_ref != 'changeset-release/main' | ||
name: "vitest" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
- name: Unit tests (3/3) | ||
run: pnpm test -- -- --run --shard=3/3 |
This file contains 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 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./renderWithIntl" | ||
export * from "./reactIntlMock" |
Oops, something went wrong.