Skip to content

echobind/ecko

Repository files navigation

Ecko

Mock any API for testing and development.

Most testing libraries offer the ability to mock external requests. But what if your tests are running on a client and you need to mock requests that the server is making? Or what if you're testing a CLI script by executing it and you need to mock requests that the script makes?

Ecko is an http server that allows you to register endpoints and responses, and then any requests made to those endpoints will return the responses you defined. This essentially lets you mock any third-party service in a way that can be used by code running in any context in your tests.

How does it work

See the tests for examples of how to use Ecko.

Contributing

See the the Contributing doc for how to contribute.

Install

npm install ecko

Release

npm run local-release

Examples

About

Mock any API for testing and development.

Resources

License

Stars

Watchers

Forks

Packages

No packages published