Skip to content

Commit 9ca4bdc

Browse files
authored
chore: purge mentions of jest, and specify jest-dom/vitest import (#2805)
1 parent e77fe30 commit 9ca4bdc

File tree

5 files changed

+689
-885
lines changed

5 files changed

+689
-885
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"browser": true,
1515
"commonjs": true,
1616
"es6": true,
17-
"jest": true,
1817
"node": true
1918
},
2019
"parserOptions": {

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install dependencies
3232
run: yarn --frozen-lockfile
3333

34-
- name: Run Jest tests with coverage
34+
- name: Run tests with coverage
3535
run: yarn test:coverage
3636

3737
- name: Run node server side tests

docs/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ These should all be run from within the project directory.
4343
- Starts Storybook server and watches for changed files
4444
- This will most likely be what you use for active development of components
4545
- `yarn test`
46-
- Starts Jest test runner
46+
- Starts test runner
4747
- `yarn test:watch` is also available
4848
- Use `yarn test:coverage` to generate a coverage report
4949
- `yarn build`
@@ -96,7 +96,7 @@ Because this project exports a library that will be used by other projects, it i
9696
- Package dependency changes should include `yarn.lock` updates and
9797
`yarn audit` will be run by danger to ensure no high or critical
9898
vulnerabilities are found
99-
- [Jest tests](https://jestjs.io/) are run in CI and must pass before the branch can be merged
99+
- [Vite tests](https://vitest.dev/) are run in CI and must pass before the branch can be merged
100100
- [Happo.io visual regression tests](https://docs.happo.io/docs/reviewing-diffs) are run CI against Storybook stories. All diffs must be approved before the branch can be merged. Developers with access (maintainers and many codeowners) log in to Happo.io account to approve/reject diffs.
101101
- PR titles must follow conventional commits specification.
102102
- We use [release-please](https://github.com/googleapis/release-please). This auto-generates version numbers and changelog based on commits. We [squash & merge](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-request-merges#squash-and-merge-your-pull-request-commits) PR commits, so the title must be correct.

src/setupTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '@testing-library/jest-dom'
1+
import '@testing-library/jest-dom/vitest'
22
import { cleanup } from '@testing-library/react'
33

44
vi.mock('focus-trap-react')

0 commit comments

Comments
 (0)