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
What we would like to be able to is clean up the svelte state manually in the middle of an it, something like either:
it('test1And2',async()=>{awaitdoSvelteStuff();svelte_jester.cleanUp();// simulate effect of afterEach()svelte_jester.startUp();// simulate effect of beforeEach()awaitdoSvelteStuff();});
Thank you for creating this library. It has made it possible to test a svelte component in Jest.
There are some places where we want to make multiple calls in the same
it
function, instead of in 2 separateit
blocks.(This is because we wish to collate the outputs of a number of calls with different inputs in to a single test output)
For example, this works:
However, if we need this to be in the same block.
Then it gives us this kind of error:
What we would like to be able to is clean up the svelte state manually in the middle of an
it
, something like either:Or...
Or maybe there is already a way to do this?
If it helps, we (myself and @isidore) would be happy to pair with someone on this.
The text was updated successfully, but these errors were encountered: