You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The`render`function supports either options that you can pass down to [`mount`](https://svelte.dev/docs/svelte/imperative-component-api#mount) or props directly:
@@ -174,10 +165,6 @@ function unmount(): Promise<void>
The`render`function supports all [`mount` options](https://test-utils.vuejs.org/api/#mount) from `@vue/test-utils` (except `attachTo` - use `container` instead). In addition to them, there are also `container` and `baseElement`.
@@ -136,17 +127,13 @@ This method is a shortcut for `console.log(prettyDOM(baseElement))`. It will pri
136
127
#### rerender
137
128
138
129
```ts
139
-
function rerender(props: Partial<Props>): void & PromiseLike<void>
130
+
function rerender(props: Partial<Props>): Promise<void>
Itisbetterifyoutestthecomponentthat's doing the prop updating to ensure that the props are being updated correctly to avoid relying on implementation details in your tests. That said, if you'dprefertoupdatethepropsofarenderedcomponentinyourtest, thisfunction can be used to update props of the rendered component.
0 commit comments