@najemi-software/vitest-dom 1.1.0 → 1.2.0-alpha.51.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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.2.0] - 2026-09-28
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Support for Vitest 5 via the new `@najemi-software/vitest-dom/extend-expect/v5` entry point, which adds the matcher types through Vitest 5's two-parameter `Matchers<R, T>` interface, so the matchers return `void` (or a `Promise` when used with `.resolves`/`.rejects`) like Vitest's own matchers
|
|
13
|
+
|
|
8
14
|
## [1.1.0] - 2026-09-28
|
|
9
15
|
|
|
10
16
|
### Changed
|
|
@@ -367,6 +373,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
367
373
|
|
|
368
374
|
- Initial release
|
|
369
375
|
|
|
376
|
+
[1.2.0]: https://github.com/Najemi-Software/vitest-dom/compare/v1.1.0...v1.2.0
|
|
370
377
|
[1.1.0]: https://github.com/Najemi-Software/vitest-dom/compare/v1.0.1...v1.1.0
|
|
371
378
|
[1.0.1]: https://github.com/Najemi-Software/vitest-dom/compare/v1.0.0...v1.0.1
|
|
372
379
|
[1.0.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.37.0...v1.0.0
|
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ 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` |
|
|
59
60
|
|
|
60
61
|
```typescript
|
|
61
62
|
// vitest.setup.ts
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@najemi-software/vitest-dom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-alpha.51.1",
|
|
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,6 +55,10 @@
|
|
|
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"
|
|
58
62
|
}
|
|
59
63
|
},
|
|
60
64
|
"publishConfig": {
|
|
@@ -111,7 +115,7 @@
|
|
|
111
115
|
"oxlint-tsgolint": "7.0.2001",
|
|
112
116
|
"typescript": "7.0.2",
|
|
113
117
|
"typescript-eslint": "8.70.1",
|
|
114
|
-
"vitest": "
|
|
118
|
+
"vitest": "5.0.2"
|
|
115
119
|
},
|
|
116
120
|
"peerDependencies": {
|
|
117
121
|
"vitest": ">=0.31.0"
|