Sander

Results 192 comments of Sander

Has anyone gotten this to work yet? It seems that there is currently no way to test an asynchronous component with vue testing library.

@afontcu After some debugging i found out that the wrapper on [line 27](https://github.com/sand4rt/suspense-test/blob/master/tests/unit/renderAsync.js#L27) needs to be resolved first, e.g. with a `await flushPromises()` like on [line 32](https://github.com/sand4rt/suspense-test/blob/master/tests/unit/renderAsync.js#L32) before calling the...

Thanks for your reply! Could you elaborate on what you mean by stubbing `Suspense`? A component with an `async setup()` must be wrapped with `Suspense` right? Otherwise the component will...

As workaround i'm using a modified version of the `render` function called `renderAsync` for now. The code can be viewed [here](https://gist.github.com/sand4rt/5da4dda9b1aec636c92b83b83cc95aee). After many problems with JSDOM/HappyDOM and issues like this...

@pavelfeldman Merged the other unmount PR with this one

@pavelfeldman Deriving the types from each component style _(class, functional, define and setup component)_ in Vue is just hard to do, but would be really great to have it in...

@lmiller1990 This is the simplest thing i could think of. It doesn't support class components _(this is not supported with Vue3 anyway)_. Do you see any problems with this? I...

Yeah think that's the best for now :(

@lmiller1990 [Playwright component testing](https://github.com/microsoft/playwright/pull/17249), [Vue Testing Library](https://github.com/testing-library/vue-testing-library/blob/main/types/index.d.ts#L51) and probably a bunch of other libraries have the same issues. I wish we had a similar util type in Vue to the...

@bsideup Apparently there is a un documented filterNodes function inside dagre: https://github.com/dagrejs/graphlib/issues/107 Created a pull request to add types for it: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/54433