Skip to content

Commit c0a7c5a

Browse files
authored
Update README
Clarified the configuration requirements for framework components and removed unnecessary code examples.
1 parent 61e7ac4 commit c0a7c5a

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

packages/vitest-browser-astro/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ test("toggles state on click", async () => {
174174

175175
## Testing Framework Components
176176

177-
Framework components (e.g. React, Vue, Svelte) require configuration for both server-side rendering and client-side hydration.
177+
Framework components (e.g. React, Vue, Svelte) require changes in the Astro and Vitest config:
178178

179179
### Setup
180180

@@ -263,13 +263,7 @@ await waitForHydration(screen);
263263
await waitForHydration(screen.getByTestId("header"));
264264
```
265265

266-
Skip `waitForHydration()` for components without client directives. You can also manually check for hydration by waiting for the `ssr` attribute to be removed:
267-
268-
```ts
269-
await expect
270-
.element(screen.getByTestId("my-island"))
271-
.not.toHaveAttribute("ssr");
272-
```
266+
Skip `waitForHydration()` for components without client directives.
273267

274268
### Supported frameworks
275269

0 commit comments

Comments
 (0)