Skip to content

Commit

Permalink
chore(atomic): migrate unit tests to vitest/browser (#4865)
Browse files Browse the repository at this point in the history
https://coveord.atlassian.net/browse/KIT-3863

Following this example PR : #4858. 

This PR migrates most of the tests in atomic to the new solution we will
be using for unit testing in atomic :

Vitest Browser runs our tests in a browser and enables simple ES module
mocking. You will see it also opens up a UI when you run `npm run test`
in atomic !!

---------

Co-authored-by: GitHub Actions Bot <>
  • Loading branch information
alexprudhomme authored Jan 17, 2025
1 parent 5276f60 commit e282666
Show file tree
Hide file tree
Showing 15 changed files with 554 additions and 55 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/prbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ jobs:

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: ./.github/actions/setup
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- run: npm test
package-compatibility:
name: 'Verify compatibility of packages'
Expand Down
Loading

0 comments on commit e282666

Please sign in to comment.