Vitest `Failed to pop isolated storage stack frame` when error thrown
With a durable object as simple as:
And running tests through the vitest integration:
I end up with
Vitest caught 1 unhandled error during the test run.
, and Failed to pop isolated storage stack frame
I'd expect this to be propagated up through rpc as it is mentioned in the docs here so vitest can handle it.
What is the suggested way to handle thrown errors in implementation in tests?4 Replies
I also have the same issue and never gotten an answer.
I ended up putting that RPC method behind a worker route and test the route instead. Not ideal.
lmao change the name of the function "test" I had this exact same problem @jman
I think naming an RPC function "test" is not allowed lol
No, the same behavior persists in the above example if the function name is changed to anything else.
myCustomFunc
for example.
Created issue here: https://github.com/cloudflare/workers-sdk/issues/7707ah sorry about that then