Skip to content
Open
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions packages/vitest/src/create/browser/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ function getExampleTest(framework: string) {
test: jsxExample.test.replace('@testing-library/jsx', `@testing-library/${framework}`),
}
case 'preact':
return {
...jsxExample,
test: jsxExample.test.replace('@testing-library/jsx', `vitest-browser-${framework}`).replace('const { getByText } = await render(<HelloWorld name="Vitest" />)', 'const { getByText } = render(<HelloWorld name="Vitest" />)'),
}
case 'react':
return {
...jsxExample,
Expand Down
Loading