Piyushkumar Dubey
worker-typescript-template
src/index.ts
calls the request handler in src/handler.ts
, and will return the request method for the given request.npm test
will run your tests.prettier
to format the project. To invoke, run npm run format
.service-worker-mock
used by the tests is not a perfect representation of the Cloudflare Workers runtime. It is a general approximation. We recommend that you test end to end with wrangler dev
in addition to a staging environment to test things before deploying.