@quilted/preact-testing
Advanced tools
Comparing version 0.0.0-preview-20231104064716 to 0.0.0-preview-20231104071931
@@ -14,2 +14,6 @@ import type { ComponentType, Context } from 'preact'; | ||
toContainPreactText(text: string): R; | ||
toContainPreactHTML(text: string): R; | ||
toHavePreactDataProps(data: { | ||
[key: string]: string; | ||
}): R; | ||
} | ||
@@ -22,10 +26,2 @@ export declare const matchers: { | ||
toContainPreactText: typeof toContainPreactText; | ||
}; | ||
export interface CustomDOMMatchers<R = unknown> { | ||
toContainPreactHTML(text: string): R; | ||
toHavePreactDataProps(data: { | ||
[key: string]: string; | ||
}): R; | ||
} | ||
export declare const domMatchers: { | ||
toContainPreactHTML: typeof toContainPreactHTML; | ||
@@ -32,0 +28,0 @@ toHavePreactDataProps: typeof toHavePreactDataProps; |
# @quilted/react-testing | ||
## 0.0.0-preview-20231104064716 | ||
## 0.0.0-preview-20231104071931 | ||
@@ -15,3 +15,3 @@ ### Patch Changes | ||
- [`c2b06042`](https://github.com/lemonmade/quilt/commit/c2b060422dce5b5b643ca153f65e64efb5504e3f) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix custom matcher equality testing | ||
- [`4bf3e6ad`](https://github.com/lemonmade/quilt/commit/4bf3e6ade2922fe5de175b07fdaf21bb679895bf) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix custom matcher equality testing | ||
@@ -18,0 +18,0 @@ - [`4df2d665`](https://github.com/lemonmade/quilt/commit/4df2d665ae22201afa86e7a5f214f73f5428ea4e) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix React testing exports |
{ | ||
"name": "@quilted/preact-testing", | ||
"type": "module", | ||
"version": "0.0.0-preview-20231104064716", | ||
"version": "0.0.0-preview-20231104071931", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -29,2 +29,4 @@ import type {ComponentType, Context} from 'preact'; | ||
toContainPreactText(text: string): R; | ||
toContainPreactHTML(text: string): R; | ||
toHavePreactDataProps(data: {[key: string]: string}): R; | ||
} | ||
@@ -38,12 +40,4 @@ | ||
toContainPreactText, | ||
}; | ||
export interface CustomDOMMatchers<R = unknown> { | ||
toContainPreactHTML(text: string): R; | ||
toHavePreactDataProps(data: {[key: string]: string}): R; | ||
} | ||
export const domMatchers = { | ||
toContainPreactHTML, | ||
toHavePreactDataProps, | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
251964
2830