@testing-library/svelte 4.0.5 → 4.0.6
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/package.json +1 -1
- package/types/index.d.ts +4 -3
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -60,7 +60,8 @@ export type FireObject = {
|
|
|
60
60
|
export const fireEvent: FireFunction & FireObject;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* Calls a function
|
|
64
|
-
*
|
|
63
|
+
* Calls a function and notifies Svelte to flush any pending state changes.
|
|
64
|
+
*
|
|
65
|
+
* If the function returns a Promise, that Promise will be resolved first.
|
|
65
66
|
*/
|
|
66
|
-
export function act(fn?:
|
|
67
|
+
export function act(fn?: () => unknown): Promise<void>
|