@najemi-software/vitest-dom 0.7.0 → 0.8.0-alpha.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/dist/{chunk-LZZAJDBO.js → chunk-JWT7CU2B.js} +601 -748
- package/dist/chunk-JWT7CU2B.js.map +1 -0
- package/dist/extend-expect.js +1 -1
- package/dist/extend-expect.js.map +1 -1
- package/dist/matchers.d.ts +41 -65
- package/dist/matchers.js +1 -1
- package/package.json +83 -81
- package/dist/chunk-LZZAJDBO.js.map +0 -1
package/README.md
CHANGED
|
@@ -60,9 +60,9 @@ import "@najemi-software/vitest-dom/extend-expect";
|
|
|
60
60
|
|
|
61
61
|
// In vitest.config.js, add the following
|
|
62
62
|
export default defineConfig({
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
test: {
|
|
64
|
+
setupFiles: ["vitest-setup.js"],
|
|
65
|
+
},
|
|
66
66
|
});
|
|
67
67
|
```
|
|
68
68
|
|
|
@@ -82,17 +82,17 @@ import "@najemi-software/vitest-dom/extend-expect";
|
|
|
82
82
|
If you want to run `extend.expect` yourself, you will need to include the type defintions either with a `/// <reference />` directive or including the type in your `compilerOptions`:
|
|
83
83
|
|
|
84
84
|
1. In your test file via a reference directive:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
```typescript
|
|
86
|
+
/// <reference types="@najemi-software/vitest-dom/extend-expect" />
|
|
87
|
+
```
|
|
88
88
|
2. In your `tsconfig.json` via the `types` compiler option:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"compilerOptions": {
|
|
92
|
+
"types": ["@najemi-software/vitest-dom/extend-expect"]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
96
|
|
|
97
97
|
<!-- prettier-ignore-start -->
|
|
98
98
|
[vitest]: https://vitest.dev/
|