svelte-testing-library icon indicating copy to clipboard operation
svelte-testing-library copied to clipboard

TypeScript definition of act() function allows Promise as a parameter, but code fails if Promise is provided

Open cbxp opened this issue 3 years ago • 0 comments

https://github.com/testing-library/svelte-testing-library/blob/5ae96a77c7c4f80183ed89908482dc4b88059ae6/src/pure.js#L94

The code above should check if fn is a function before calling it, otherwise should be used as a Promise

cbxp avatar Apr 12 '21 09:04 cbxp