@najemi-software/vitest-dom 1.0.0-alpha.47.1 → 1.0.0
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/CHANGELOG.md
CHANGED
|
@@ -9,8 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
- One entry point per Vitest major version, `@najemi-software/vitest-dom/extend-expect/v0` through `@najemi-software/vitest-dom/extend-expect/v5`, each exporting `extendExpect()` and `matchers` and adding the matcher types through the typing extension point of that Vitest version (`Assertion` for Vitest 0.31–2, `Matchers` for Vitest 3–5), so the types check cleanly even with `skipLibCheck` disabled
|
|
12
|
+
- One entry point per Vitest major version, `@najemi-software/vitest-dom/extend-expect/v0` through `@najemi-software/vitest-dom/extend-expect/v4`, each exporting `extendExpect()` and `matchers` and adding the matcher types through the typing extension point of that Vitest version (`Assertion` for Vitest 0.31–2, `Matchers` for Vitest 3–4), so the types check cleanly even with `skipLibCheck` disabled
|
|
14
13
|
- `extendExpect()` optionally accepts a subset of the matchers, to extend `expect` with only those
|
|
15
14
|
- The package root `@najemi-software/vitest-dom` exports the individual matchers, a `matchers` object and the `TestingLibraryMatchers` type
|
|
16
15
|
|
package/README.md
CHANGED
|
@@ -56,7 +56,6 @@ preferably in your [tests setup file][]:
|
|
|
56
56
|
| 2.x | `@najemi-software/vitest-dom/extend-expect/v2` |
|
|
57
57
|
| 3.x | `@najemi-software/vitest-dom/extend-expect/v3` |
|
|
58
58
|
| 4.x | `@najemi-software/vitest-dom/extend-expect/v4` |
|
|
59
|
-
| 5.x | `@najemi-software/vitest-dom/extend-expect/v5` |
|
|
60
59
|
|
|
61
60
|
```typescript
|
|
62
61
|
// vitest.setup.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@najemi-software/vitest-dom",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Custom Vitest matchers to test the state of the DOM, forked from jest-dom.",
|
|
6
6
|
"homepage": "https://github.com/Najemi-Software/vitest-dom#readme",
|
|
@@ -55,10 +55,6 @@
|
|
|
55
55
|
"./extend-expect/v4": {
|
|
56
56
|
"types": "./esm/extend-expect/public/v4.d.ts",
|
|
57
57
|
"default": "./esm/extend-expect/public/v4.js"
|
|
58
|
-
},
|
|
59
|
-
"./extend-expect/v5": {
|
|
60
|
-
"types": "./esm/extend-expect/public/v5.d.ts",
|
|
61
|
-
"default": "./esm/extend-expect/public/v5.js"
|
|
62
58
|
}
|
|
63
59
|
},
|
|
64
60
|
"publishConfig": {
|
|
@@ -113,7 +109,7 @@
|
|
|
113
109
|
"oxlint-tsgolint": "7.0.2001",
|
|
114
110
|
"typescript": "7.0.2",
|
|
115
111
|
"typescript-eslint": "8.70.1",
|
|
116
|
-
"vitest": "
|
|
112
|
+
"vitest": "4.1.11"
|
|
117
113
|
},
|
|
118
114
|
"peerDependencies": {
|
|
119
115
|
"vitest": ">=0.31.0"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type TestingLibraryMatchers, type WithoutIndexSignature, matchers } from "../../index.js";
|
|
2
|
-
declare module "vitest" {
|
|
3
|
-
interface Matchers<R, T> extends WithoutIndexSignature<TestingLibraryMatchers<R>> {
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
export { matchers };
|
|
7
|
-
export { extendExpect } from "../extend-expect.js";
|
|
8
|
-
//# sourceMappingURL=v5.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v5.d.ts","sourceRoot":"","sources":["../../../src/extend-expect/public/v5.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,qBAAqB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAKnG,OAAO,QAAQ,QAAQ,CAAC;IACpB,UAAU,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,qBAAqB,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;KAAG;CACvF;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// oxlint-disable no-barrel-files/no-barrel-files eslint-js/no-restricted-syntax no-restricted-imports @typescript-eslint/no-empty-object-type @typescript-eslint/no-explicit-any
|
|
2
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
|
-
import { matchers } from "../../index.js";
|
|
4
|
-
export { matchers };
|
|
5
|
-
export { extendExpect } from "../extend-expect.js";
|
|
6
|
-
//# sourceMappingURL=v5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v5.js","sourceRoot":"","sources":["../../../src/extend-expect/public/v5.ts"],"names":[],"mappings":"AAAA,iLAAiL;AACjL,yDAAyD;AAEzD,OAAO,EAA2D,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AASnG,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|