From 91442dfc980aad81b72a67a51e98eb5f58da3f63 Mon Sep 17 00:00:00 2001 From: Camille Teruel Date: Wed, 25 Sep 2024 10:36:16 +0200 Subject: [PATCH] fix(browser): update solidjs testing library lib (#6548) --- docs/guide/browser/index.md | 2 +- packages/vitest/src/create/browser/creator.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/browser/index.md b/docs/guide/browser/index.md index 0077e7fc4ee0..5eacddc8b69e 100644 --- a/docs/guide/browser/index.md +++ b/docs/guide/browser/index.md @@ -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 diff --git a/packages/vitest/src/create/browser/creator.ts b/packages/vitest/src/create/browser/creator.ts index 050dcfe358e2..be0d20a04559 100644 --- a/packages/vitest/src/create/browser/creator.ts +++ b/packages/vitest/src/create/browser/creator.ts @@ -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' }