From 99f8211a135048dc900cc407860f3d53c4d7db75 Mon Sep 17 00:00:00 2001 From: Camille Teruel Date: Sun, 22 Sep 2024 23:19:24 +0200 Subject: [PATCH] fix(browser): update solidjs testing library lib Package solid-testing-library has been renamed @solidjs/testing-library. See https://testing-library.com/docs/solid-testing-library/intro/ --- 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' }