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

Inst UI 4066 investigation integration of vitest for unit testing #1516

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/testing/converting-old-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ order: 4
## Converting old tests

This guide explains how to convert current InstUI tests written with the `@instructure/ui-test-utils` testing library to
use Jest + React Testing Library.
use Vitest + React Testing Library.

### Running Jest
### Running Vitest

Jest can be run from the project root with the `npm run test:new` command. It's configured in our CI pipeline so pushing a
Vitest can be run from the project root with the `npm run test:vitest` command. It's configured in our CI pipeline so pushing a
branch to remote runs these tests together with the legacy tests automatically.

### Adding new tests to a package
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ order: 3
---

> This section uses [`@instructure/ui-test-utils`](/#ui-test-utils) testing library which will be sunset in our next
> release in favor of Jest + React Testing Library. See [our guide](/#converting-old-tests) on how to convert legacy tests to use the new
> release in favor of Vitest + React Testing Library. See [our guide](/#converting-old-tests) on how to convert legacy tests to use the new
> frameworks.

## The anatomy of a test
Expand Down
Loading
Loading