0.0.5 • Published 4 years ago

@lamnhan/testing v0.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

@lamnhan/testing

Rewiring, mocking & stubbing for testing modules in Node.

License Support me on Patreon PayPal Ask me anything

Install globaly, as a CLI:

npm install -g @lamnhan/testing

Or localy:

npm install --save-dev @lamnhan/testing

Use the library:

import { mockService } from "@lamnhan/testing";

const mocked = mockService({
  a: () => 1,
  b: async () => 2
});

// test begins

See the documentation at: http://lamnhan.com/testing

License

@lamnhan/testing is released under the MIT license.