@najemi-software/vitest-dom 0.35.0-alpha.43.1 → 0.35.1-alpha.44.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.35.1] - 2026-09-27
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Register the `toHaveAccessibleErrorMessage` matcher, which was declared in the matcher types but missing from the exported `matchers`, so calling it through `expect` type-checked but failed at runtime
|
|
13
|
+
|
|
8
14
|
## [0.35.0] - 2026-09-27
|
|
9
15
|
|
|
10
16
|
### Changed
|
|
@@ -322,6 +328,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
322
328
|
|
|
323
329
|
- Initial release
|
|
324
330
|
|
|
331
|
+
[0.35.1]: https://github.com/Najemi-Software/vitest-dom/compare/v0.35.0...v0.35.1
|
|
325
332
|
[0.35.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.34.0...v0.35.0
|
|
326
333
|
[0.34.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.33.1...v0.34.0
|
|
327
334
|
[0.33.1]: https://github.com/Najemi-Software/vitest-dom/compare/v0.33.0...v0.33.1
|
|
@@ -37,4 +37,4 @@ import type { IMatcherResult, MatcherState } from "./types.js";
|
|
|
37
37
|
* @see
|
|
38
38
|
* [testing-library/jest-dom#tohaveaccessibleerrormessage](https://github.com/testing-library/jest-dom#tohaveaccessibleerrormessage)
|
|
39
39
|
*/
|
|
40
|
-
export declare function toHaveAccessibleErrorMessage<State extends MatcherState>(this: State, htmlElement:
|
|
40
|
+
export declare function toHaveAccessibleErrorMessage<State extends MatcherState>(this: State, htmlElement: Element, expectedAccessibleErrorMessage?: string | RegExp | State): IMatcherResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-have-accessible-errormessage.js","sourceRoot":"","sources":["../../src/matchers/to-have-accessible-errormessage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAErE,MAAM,eAAe,GAAG,cAAc,CAAC;AACvC,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,CAAC;AAE9B,wFAAwF;AACxF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,4BAA4B,CAExC,
|
|
1
|
+
{"version":3,"file":"to-have-accessible-errormessage.js","sourceRoot":"","sources":["../../src/matchers/to-have-accessible-errormessage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAErE,MAAM,eAAe,GAAG,cAAc,CAAC;AACvC,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,CAAC;AAE9B,wFAAwF;AACxF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,4BAA4B,CAExC,WAAoB,EACpB,8BAAwD;IAExD,gBAAgB,CAAC,WAAW,EAAE,4BAA4B,EAAE,IAAI,CAAC,CAAC;IAClE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IACxC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,+BAA+B,CAAC;IAElG,mBAAmB;IACnB,MAAM,cAAc,GAAG,WAAW,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IACrE,MAAM,qBAAqB,GAAG,CAAC,CAAC,cAAc,IAAI,KAAK,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8B,KAAK,SAAS;YACxC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;YAChB,CAAC,CAAC,8BAA8B,YAAY,MAAM;gBAChD,CAAC,CAAC,8BAA8B,CAAC,IAAI,CAAC,KAAK,CAAC;gBAC5C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,8BAA8B,CAAC;QAE9D,OAAO,EAAE,GAAG,EAAE;YACV,OAAO,UAAU,CACb,IAAI,EACJ,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,EACzC,oBAAoB,EAAE,gCAAgC,EACtD,8BAA8B,IAAI,EAAE,EACpC,UAAU,EACV,KAAK,CACR,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
|
package/esm/matchers.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { toBeVisible } from "./matchers/to-be-visible.js";
|
|
|
11
11
|
import { toContainElement } from "./matchers/to-contain-element.js";
|
|
12
12
|
import { toContainHTML } from "./matchers/to-contain-html.js";
|
|
13
13
|
import { toHaveAccessibleDescription } from "./matchers/to-have-accessible-description.js";
|
|
14
|
+
import { toHaveAccessibleErrorMessage } from "./matchers/to-have-accessible-errormessage.js";
|
|
14
15
|
import { toHaveAccessibleName } from "./matchers/to-have-accessible-name.js";
|
|
15
16
|
import { toHaveAttribute } from "./matchers/to-have-attribute.js";
|
|
16
17
|
import { toHaveClass } from "./matchers/to-have-class.js";
|
|
@@ -22,7 +23,7 @@ import { toHaveFormValues } from "./matchers/to-have-form-values.js";
|
|
|
22
23
|
import { toHaveStyle } from "./matchers/to-have-style.js";
|
|
23
24
|
import { toHaveTextContent } from "./matchers/to-have-text-content.js";
|
|
24
25
|
import { toHaveValue } from "./matchers/to-have-value.js";
|
|
25
|
-
export { toBeInTheDOM, toBeInTheDocument, toBeEmpty, toBeEmptyDOMElement, toContainElement, toContainHTML, toHaveTextContent, toHaveAccessibleDescription, toHaveAccessibleName, toHaveAttribute, toHaveClass, toHaveStyle, toHaveFocus, toHaveFormValues, toBeVisible, toBeDisabled, toBeEnabled, toBeRequired, toBeInvalid, toBeValid, toHaveValue, toHaveDisplayValue, toBeChecked, toBePartiallyChecked, toHaveDescription, toHaveErrorMessage, };
|
|
26
|
+
export { toBeInTheDOM, toBeInTheDocument, toBeEmpty, toBeEmptyDOMElement, toContainElement, toContainHTML, toHaveTextContent, toHaveAccessibleDescription, toHaveAccessibleErrorMessage, toHaveAccessibleName, toHaveAttribute, toHaveClass, toHaveStyle, toHaveFocus, toHaveFormValues, toBeVisible, toBeDisabled, toBeEnabled, toBeRequired, toBeInvalid, toBeValid, toHaveValue, toHaveDisplayValue, toBeChecked, toBePartiallyChecked, toHaveDescription, toHaveErrorMessage, };
|
|
26
27
|
export interface TestingLibraryMatchers<E, R> extends Record<string, any> {
|
|
27
28
|
toBeInTheDOM(container?: HTMLElement | SVGElement): R;
|
|
28
29
|
toBeInTheDocument(): R;
|
package/esm/matchers.js
CHANGED
|
@@ -12,6 +12,7 @@ import { toBeVisible } from "./matchers/to-be-visible.js";
|
|
|
12
12
|
import { toContainElement } from "./matchers/to-contain-element.js";
|
|
13
13
|
import { toContainHTML } from "./matchers/to-contain-html.js";
|
|
14
14
|
import { toHaveAccessibleDescription } from "./matchers/to-have-accessible-description.js";
|
|
15
|
+
import { toHaveAccessibleErrorMessage } from "./matchers/to-have-accessible-errormessage.js";
|
|
15
16
|
import { toHaveAccessibleName } from "./matchers/to-have-accessible-name.js";
|
|
16
17
|
import { toHaveAttribute } from "./matchers/to-have-attribute.js";
|
|
17
18
|
import { toHaveClass } from "./matchers/to-have-class.js";
|
|
@@ -23,5 +24,5 @@ import { toHaveFormValues } from "./matchers/to-have-form-values.js";
|
|
|
23
24
|
import { toHaveStyle } from "./matchers/to-have-style.js";
|
|
24
25
|
import { toHaveTextContent } from "./matchers/to-have-text-content.js";
|
|
25
26
|
import { toHaveValue } from "./matchers/to-have-value.js";
|
|
26
|
-
export { toBeInTheDOM, toBeInTheDocument, toBeEmpty, toBeEmptyDOMElement, toContainElement, toContainHTML, toHaveTextContent, toHaveAccessibleDescription, toHaveAccessibleName, toHaveAttribute, toHaveClass, toHaveStyle, toHaveFocus, toHaveFormValues, toBeVisible, toBeDisabled, toBeEnabled, toBeRequired, toBeInvalid, toBeValid, toHaveValue, toHaveDisplayValue, toBeChecked, toBePartiallyChecked, toHaveDescription, toHaveErrorMessage, };
|
|
27
|
+
export { toBeInTheDOM, toBeInTheDocument, toBeEmpty, toBeEmptyDOMElement, toContainElement, toContainHTML, toHaveTextContent, toHaveAccessibleDescription, toHaveAccessibleErrorMessage, toHaveAccessibleName, toHaveAttribute, toHaveClass, toHaveStyle, toHaveFocus, toHaveFormValues, toBeVisible, toBeDisabled, toBeEnabled, toBeRequired, toBeInvalid, toBeValid, toHaveValue, toHaveDisplayValue, toBeChecked, toBePartiallyChecked, toHaveDescription, toHaveErrorMessage, };
|
|
27
28
|
//# sourceMappingURL=matchers.js.map
|
package/esm/matchers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchers.js","sourceRoot":"","sources":["../src/matchers.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,O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E,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,EAC5B,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,GACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@najemi-software/vitest-dom",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.1-alpha.44.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",
|