Cloudflare

Unit Testing Worker Functions

Mar 15, 2019Tom Brightbill, Tim Obezuk
Unit Testing Worker Functions
SummaryAI, from the source post

Introduces Cloudworker, a mock for the Workers runtime, and demonstrates its use with Mocha for unit testing individual Worker functions and the overall Worker script. Provides an example script, directory setup, and test writing syntax.

More from the Edge Computing with Cloudflare Workers trail