Skip to content

Commit 05ace26

Browse files
author
Alex Lohr
committed
documentation
1 parent 01de70b commit 05ace26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ if (import.meta.hot) {
188188
189189
- If one of your dependency spit out React code instead of Solid that means that they don't expose JSX properly. To get around it, you might want to manually exclude it from the [dependencies optimization](https://vitejs.dev/config/dep-optimization-options.html#optimizedeps-exclude)
190190
191-
- If you are trying to make [directives](https://www.solidjs.com/docs/latest/api#use%3A___) work and they somehow don't try setting the `options.typescript.onlyRemoveTypeImports` option to `true`
191+
- If you are trying to make [directives](https://www.solidjs.com/docs/latest/api#use%3A___) work, and they somehow don't try setting the `options.typescript.onlyRemoveTypeImports` option to `true`
192192
193193
## Migration from v1
194194
@@ -198,6 +198,10 @@ The main breaking change from previous version is that the package has been rena
198198
199199
For other breaking changes, check [the migration guide of vite](https://vitejs.dev/guide/migration.html).
200200
201+
# Testing
202+
203+
If you are using [vitest](https://vitest.dev/), this plugin already injects the necessary configuration for you. It even automatically detects if you have `@testing-library/jest-dom` installed in your project and automatically adds it to the `setupFiles`. All you need to add (if you want) is `globals`, `coverage`, and other testing configuration of your choice. If you can live without those, enjoy using vitest without the need to configure it yourself.
204+
201205
# Credits
202206
203207
- [solid-js](https://github.com/solidjs/solid)

0 commit comments

Comments
 (0)