jefflau / jest-fetch-mock

Jest mock for fetch
MIT License
883 stars 116 forks source link

Include @types/node in README #107

Closed hettlage closed 3 years ago

hettlage commented 5 years ago

Include the Node type definitions in the npm install command for jest-fetch-mock in the TypeScript section. Without these TypeScript does not compile the Jest setup file.

jefflau commented 5 years ago

@janhartmann @beheh Can you review this for me?

yinzara commented 3 years ago

We decided that this would not be advised. Users should manage their own @types/node if they would like to use this library in a NodeJS environment as the library also works in a dom browser environment.