worker-typescript-template icon indicating copy to clipboard operation
worker-typescript-template copied to clipboard

ʕ •́؈•̀) TypeScript template for Cloudflare Workers

Results 21 worker-typescript-template issues
Sort by recently updated
recently updated
newest added
trafficstars

Several links in the README were broken, I have updated them to the current versions of the docs

This ensures that the dependencies installed upon a build will be same ones as defined in `package-lock.json`. Using `npm install` could result in different-than-expected dependencies, which makes things hander to...

When I use `fetch('someUrl')` in my code, the jest will report a bug like `ReferenceError: fetch is not defined`. How can I solve this problem?

This template depends on `service-worker-mock`: https://github.com/cloudflare/worker-typescript-template/blob/master/package.json#L32 The NPM package for this is found here: https://www.npmjs.com/package/service-worker-mock The Github repository link at NPM points here: https://github.com/pinterest/service-workers However, Github redirects requests to this...

service-worker-mock is unmaintained and Miniflare is an official Cloudflare product with proper Jest support.

Jest loads jest.config.json automatically so this reduces a tiny bit of verbosity in the test command

Hi, I was using this project to build a worker on Cloudflare. I was trying to add `@types/mocha` but noticed that I had to add every global declaration I installed...

Hello, I'm using the following command to preview the worker: `wrangler preview --watch` The Browser opens and the worker is running. After changing the code, I get the following message:...

I propose that you suggest the user of [`edge-mock`](https://github.com/samuelcolvin/edge-mock) (which I've just built) instead of [`service-worker-mock`](https://github.com/zackargyle/service-workers/tree/master/packages/service-worker-mock). I've made the necessary changes here for the switch. A few advantages of `edge-mock`:...

On Windows, running either of the `npm` scripts which call Prettier (`lint' or `format`) fails with "no files matching" errors: ![NPM Output](https://user-images.githubusercontent.com/483470/133068473-617db60d-960c-4b8c-acb7-e01f488af121.png) It seems like this is because Windows is...