@lamnhan/testingdeprecated

Rewiring, mocking & stubbing for testing modules in Node.

Usage no npm install needed!

<script type="module">
  import lamnhanTesting from 'https://cdn.skypack.dev/@lamnhan/testing';
</script>

README

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.