#Unable to Setup Worker Test Environment
10 messages · Page 1 of 1 (latest)
thanks, i think i got closer and found out that it's related to the actual test. i was using UnstableWorker which seems to be deprecated. i'll gladly take a look at your repos, thank you!
Ahh yes UnstableWorker was what was used before the direct vitest integration - there's no need to use that anymore
do you have any example using DOs?
yea the UnstableDevWorker stuff is linked here, so maybe it is actually still required for testing DOs? https://developers.cloudflare.com/durable-objects/examples/testing-with-durable-objects/
right, i was just checking this one: https://github.com/cloudflare/workers-sdk/blob/main/fixtures/vitest-pool-workers-examples/durable-objects/test/direct-access.test.ts
yet, env.MYDO.get() returns undefined 😦
even if you use that exact fixture's code? If you can create a minimal repro and open an issue at https://github.com/cloudflare/workers-sdk/issues, that would be ideal if there's a bug here