Skip to content

@cloudflare/vitest-plugin@1.8.1

Choose a tag to compare

@workers-devprod workers-devprod released this 12 Nov 13:46
· 5 commits to main since this release
Immutable release. Only release title and notes can be modified.
1e688ba

Patch Changes

  • #16833 5f539b5 Thanks @jamesopstad! - Name cf commands and settings in remote bindings errors

    When remote bindings could not authenticate, the error told you to run wrangler whoami, wrangler logout and wrangler login. It now names cf auth whoami, cf auth logout and cf auth login. When a Flagship binding without an id needed to run remotely, the error named Wrangler's app_id setting and suggested wrangler flagship apps create. It now names id and suggests cf flagship apps create.

    For the Vitest plugin, this applies to projects that load cloudflare.config.ts. Projects that use a Wrangler configuration file still see the Wrangler commands.

  • #16834 8e57331 Thanks @edmundhung! - Fix test files never finishing when a socket read rejects after a Worker handler has answered

    Previously, if a handler finished while a socket was still being read, for example a database client's connection, the read's rejection could leave vitest run waiting forever after the tests passed. Vitest now reports the unhandled error and the run ends.

  • Updated dependencies [8b2a363, 5f539b5, dc47e6d, 575d136, 3626ee8]: