testing
A collection of packages optimized for Cloudflare Workers and service workers.
-
@cfworker/base64url
: readme | npmbase64 URL encoding for Cloudflare Workers and service workers
-
@cfworker/cosmos
: readme | npmAzure Cosmos DB client for Cloudflare Workers and service workers
-
Web app demo
-
Run, test and deploy Cloudflare workers
-
@cfworker/json-schema
: readme | npmA JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, and 2019-09.
-
Tiny lib for decoding JWTs and verifying signatures, using native crypto APIs
-
@cfworker/sentry
: readme | npmMinimalist Sentry client for Cloudflare workers and service workers
-
Fast UUID generator with no dependencies. Generate V4 compliant UUIDs using crypto.getRandomValues
-
Web framework for Cloudflare Workers and service workers, inspired by Koa and fastify
Install dependencies using yarn. Yarn will ensure cfworker packages that depend on other cfworker packages are linked properly.
yarn install
Run all tests
yarn test
Run a specific package's tests
yarn workspace @cfworker/base64url test
Watch files for changes and re-run tests
yarn workspace @cfworker/base64url test --watch
Use chrome devtools to debug tests
yarn workspace @cfworker/base64url test --watch --inspect
Refer to each package's README for more specific instructions and examples. Some packages require a .env file (gitignored) containing cloudflare or cosmos db keys for integration testing.