How do people unit test their durable objects? I have been trying to use some of the helper classes

How do people unit test their durable objects? I have been trying to use some of the helper classes from miniflare (https://github.com/mrbbot/miniflare/blob/2cca9aea04/src/kv/do.ts) but I get the following errors in jest:

Test suite failed to run

    Cannot find module '../generated/offsets' from '../../node_modules/tz-offset/src/tz-offset.js'

    Require stack:
      C:/dev/me/tinkering-with-durable-objects/node_modules/tz-offset/src/tz-offset.js
      C:/dev/me/tinkering-with-durable-objects/node_modules/node-cron/src/scheduled-task.js
      C:/dev/me/tinkering-with-durable-objects/node_modules/node-cron/src/node-cron.js
      C:/dev/me/tinkering-with-durable-objects/node_modules/miniflare/dist/index.js
      src/projections/ProjectionDurableObject.test.ts
GitHub
🔥 Fully-local simulator for Cloudflare Workers. Contribute to mrbbot/miniflare development by creating an account on GitHub.
Was this page helpful?