0.8.0 • Published 3 years ago

vi-fetch v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vi-fetch

Easiest way to mock fetch

Compatible with Vitest and Jest when using ESM flag or with transform for /node_modules/vi-fetch.

The main difference with fetch-mock or fetch-mock-jest is that they consider fetch just as a function call instead of function that calls API endpoints. vi-fetch provides matchers to test calls to endpoints instead of simply function calls.

For example, we consider an endpoint to be a part of URL until the first ?: query is an argument to an endpoint, just like body, - that's why we provide matchers like toHaveFetchedWithQuery and toHaveFetchedWithBody.

Docs

Read full docs on GitHub.

0.7.2

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.5.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago