Hey wrangler team... this is a crosspost

Hey wrangler team... this is a crosspost from the DO channel, but I'm not getting responses there, and it may be a wrangler issue anyway: I'm trying to republish an updated itty-durable that imports/extends { DurableObject } from 'cloudflare:workers'... This works fine, and folks can use it downstream as long as they are using wrangler (obv), but I am unsure of how to add test coverage to this in a way that'll pass outside of a wrangler environment (e.g. jest/vitest on GH actions). Any tips on how to pass this hurdle would be greatly appreciated!
2 Replies
kian
kian7mo ago
Is it running with the Workers vitest environment? I don't think there's a way to get it to work outside of that personally.
Kevin
KevinOP6mo ago
It would not be… in order to pass CI off to GitHub, I need it outside the workers environment… I guess I can create a mock and reroute to that for tests somehow…
Want results from more Discord servers?
Add your server