README
@lamnhan/testing
Rewiring, mocking & stubbing for testing modules in Node.
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.