@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testing-library/svelte",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Simple and complete Svelte testing utilities that encourage good testing practices.",
5
5
  "main": "src/index.js",
6
6
  "exports": {
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 or resolves a Promise and notifies Svelte to immediately flushes any pending
64
- * state changes.
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?: Function | Promise<any>): Promise<void>
67
+ export function act(fn?: () => unknown): Promise<void>