@ficusjs/testing
Advanced tools
+6
-0
@@ -7,2 +7,8 @@ # Changelog | ||
| ## [2.3.0] - 2023-08-01 | ||
| ### Updates | ||
| - Add a reference to the `navigator` global object (#18) | ||
| - Uplift devDependencies | ||
| ## [2.2.0] - 2023-07-17 | ||
@@ -9,0 +15,0 @@ |
+1
-1
| { | ||
| "name": "@ficusjs/testing", | ||
| "version": "2.2.0", | ||
| "version": "2.3.0", | ||
| "description": "Helper functions for component testing", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+2
-1
@@ -8,3 +8,4 @@ import { JSDOM } from 'jsdom' | ||
| globalThis.window = dom.window | ||
| globalThis.document = dom.window.document | ||
| globalThis.document = window.document | ||
| globalThis.navigator = window.navigator | ||
| globalThis.customElements = window.customElements | ||
@@ -11,0 +12,0 @@ globalThis.HTMLElement = window.HTMLElement |
+1
-1
| export declare function init (): void | ||
| export declare function render<T> (tagName: string, importer: () => Promise<{}> | void): T | ||
| export declare function render<T> (tagName: string, importer: () => Promise<{}> | void, attrs?: Object): T |
19725
0.89%58
1.75%