DefinitelyTyped/types/egg-mock/egg-mock-tests.ts
Eward Song 102a19de6a add egg and egg-mock (#15971)
* feat: add egg and egg-mock

* chore: remove disable, add typescript version

* chore: add some doc, and change interface name to CamelCased
2017-04-20 08:16:54 -07:00

7 lines
139 B
TypeScript

import * as mm from 'egg-mock';
const app = mm.app();
app.ready();
app.mockService('foo', 'bar', ['123']);
const ctx = app.mockContext();