@najemi-software/vitest-dom 0.30.0 → 0.30.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
+ ## [0.30.1] - 2026-09-27
9
+
10
+ ### Fixed
11
+
12
+ - Allow `toHaveClass` to accept multiple class names followed by an options object, e.g. `toHaveClass("a", "b", { exact: true })`, which was supported at runtime but rejected by the types
13
+
8
14
  ## [0.30.0] - 2026-09-27
9
15
 
10
16
  ### Changed
@@ -274,6 +280,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
274
280
 
275
281
  - Initial release
276
282
 
283
+ [0.30.1]: https://github.com/Najemi-Software/vitest-dom/compare/v0.30.0...v0.30.1
277
284
  [0.30.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.29.0...v0.30.0
278
285
  [0.29.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.28.0...v0.29.0
279
286
  [0.28.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.27.0...v0.28.0
package/esm/matchers.d.ts CHANGED
@@ -41,6 +41,9 @@ export interface TestingLibraryMatchers<E, R> extends Record<string, any> {
41
41
  toHaveClass(classNames: string, options?: {
42
42
  exact: boolean;
43
43
  }): R;
44
+ toHaveClass(...args: [...classNames: string[], options: {
45
+ exact: boolean;
46
+ }]): R;
44
47
  toHaveDisplayValue(value: string | RegExp | Array<string | RegExp>): R;
45
48
  toHaveFocus(): R;
46
49
  toHaveFormValues(expectedValues: Record<string, unknown>): R;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@najemi-software/vitest-dom",
3
- "version": "0.30.0",
3
+ "version": "0.30.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",