Skip to content

Commit

Permalink
Update solidjs testing library lib
Browse files Browse the repository at this point in the history
Package solid-testing-library has been renamed @solidjs/testing-library.
See https://testing-library.com/docs/solid-testing-library/intro/
  • Loading branch information
CamilleTeruel committed Sep 22, 2024
1 parent 2a50464 commit 19fb879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/browser/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ Vitest doesn't support all frameworks out of the box, but you can use external t
For unsupported frameworks, we recommend using `testing-library` packages:

- [`@testing-library/preact`](https://testing-library.com/docs/preact-testing-library/intro) to render [preact](https://preactjs.com) components
- [`solid-testing-library`](https://testing-library.com/docs/solid-testing-library/intro) to render [solid](https://www.solidjs.com) components
- [`@solidjs/testing-library`](https://testing-library.com/docs/solid-testing-library/intro) to render [solid](https://www.solidjs.com) components
- [`@marko/testing-library`](https://testing-library.com/docs/marko-testing-library/intro) to render [marko](https://markojs.com) components

::: warning
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/create/browser/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function getFrameworkTestPackage(framework: string) {
case 'preact':
return '@testing-library/preact'
case 'solid':
return 'solid-testing-library'
return '@solidjs/testing-library'
case 'marko':
return '@marko/testing-library'
}
Expand Down

0 comments on commit 19fb879

Please sign in to comment.