History.md
14.4 KB
3.26.0 / 2021-07-21
features
- [
ef5fef6] - feat: pick https://github.com/eggjs/egg-mock/pull/119/files (#120) (mansonchor.github.com <mansonchor1987@gmail.com>)
3.25.1 / 2020-01-17
fixes
- [
51ef091] - fix: backgroundTasksFinished ensure all tasks finished (#115) (Yiyu He <>)
3.25.0 / 2019-12-12
features
- [
4c31c9e] - feat: support init hook before mock app init (#109) (TZ | 天猪 <atian25@qq.com>)
fixes
- [
cbab52a] - fix: enable sendRandom() method in unittest (#114) (GoodMeowing <36814673+GoodMeowing@users.noreply.github.com>)
3.24.2 / 2019-11-07
fixes
- [
3bf5ded] - fix: mockLog don't read file (#113) (Yiyu He <>)
3.24.1 / 2019-09-30
fixes
- [
bd305d2] - fix: single mode will call app.agent.close (#108) (TZ | 天猪 <atian25@qq.com>)
3.24.0 / 2019-09-26
features
- [
315e685] - feat: support app.notExpectLog() (#107) (fengmk2 <fengmk2@gmail.com>)
3.23.2 / 2019-09-10
fixes
- [
e494325] - fix: mockHttpclient with multi-request (#106) (吖猩 <whx89768@alibaba-inc.com>) - [
d836536] - fix: fix httpRequest function signature (#105) (Colin Cheng <zbinlin@gmail.com>)
3.23.1 / 2019-05-20
fixes
- [
6be0c43] - fix: rimraf (#104) (TZ | 天猪 <atian25@qq.com>)
3.23.0 / 2019-05-20
features
- [
9ada7f0] - feat: mockHttpclient support fn (#103) (TZ | 天猪 <atian25@qq.com>)
3.22.4 / 2019-05-06
fixes
- [
478581a] - fix: remove egg-core deps (#101) (TZ | 天猪 <atian25@qq.com>)
3.22.3 / 2019-05-06
fixes
- [
6174f9b] - fix: throw error when an egg plugin test is using bootstrap (#100) (TZ | 天猪 <atian25@qq.com>)
3.22.2 / 2019-04-10
fixes
- [
a68ca65] - fix: should emit server (#98) (TZ | 天猪 <atian25@qq.com>)
3.22.1 / 2019-03-12
fixes
- [
3f73bad] - fix: d.ts typo (#97) (TZ | 天猪 <atian25@qq.com>)
3.22.0 / 2019-03-11
features
- [
81ed542] - feat: add mock API for customLoader (#95) (Haoliang Gao <sakura9515@gmail.com>)
fixes
- [
58d0b32] - fix: remove nonexistent type and correct typing (#96) (Sinux <askb@me.com>)
3.21.0 / 2018-12-27
features
* [93f8009] - feat: cluster mock support result (#92) (TZ <atian25@qq.com>)
* [be3d146] - feat: bootstrap support run on jest env (#93) (fengmk2 <fengmk2@gmail.com>)
3.20.1 / 2018-09-17
fixes
- [
4b5dbb5] - fix: add app.mockLog() to improve app.expectLog() more stable (#87) (fengmk2 <fengmk2@gmail.com>)
others
- [
a64db33] - deps: add egg-logger dependency (#88) (fengmk2 <fengmk2@gmail.com>)
3.20.0 / 2018-08-30
features
- [
283eef3] - feat: addapp.agent.mockHttpclient()for agent (#82) (limerick <guods2015@gmail.com>)
3.19.7 / 2018-08-28
fixes
- [
cc6b976] - fix: app.messenger.broadcast send to self (君羽 <ImHype@users.noreply.github.com>)
3.19.6 / 2018-08-24
fixes
- [
00fb82e] - fix: fix declaration merging error (#86) (吖猩 <whxaxes@qq.com>)
3.19.5 / 2018-08-24
fixes
- [
1635a90] - fix: show expectLog last 500 words on assert error (#85) (fengmk2 <fengmk2@gmail.com>)
3.19.4 / 2018-08-24
- feat: .d.ts 新增继承自 mm 的 api (#81)
3.19.3 / 2018-08-16
fixes
- [
c91bf93] - fix: allow egg-core module missing (#83) (fengmk2 <fengmk2@gmail.com>)
3.19.2 / 2018-08-07
fixes
- [
1710f7f] - fix: put mock restore at the end (#80) (fengmk2 <fengmk2@gmail.com>)
3.19.1 / 2018-08-07
fixes
- [
db3cb11] - fix: make sure backgroundTasksFinished() return promise (#79) (fengmk2 <fengmk2@gmail.com>)
3.19.0 / 2018-08-06
features
- [
ab5a47e] - feat: should wait for background task finish on afterEach (#78) (fengmk2 <fengmk2@gmail.com>)
3.18.0 / 2018-08-03
features
- [
f25c50a] - feat: addapp.expectLog()for app and cluster (#77) (fengmk2 <fengmk2@gmail.com>)
others
- [
ffb1187] - chore: improve tsd and add bootstrap.d.ts (#76) (SuperEVO <zhang740@qq.com>)
3.17.3 / 2018-07-14
- types: add bootstrap.d.ts (#75)
3.17.2 / 2018-05-21
others
- [
62c3dfa] - refactor: middleware use promise-based style (#74) (Haoliang Gao <sakura9515@gmail.com>)
3.17.1 / 2018-04-21
- fix: remove options.typescript support (#73)
3.17.0 / 2018-03-30
- feat: support ts from env and pkg (#71)
3.16.0 / 2018-03-28
- feat: support ts (#70)
- fix: mockSession save should not be enumerable (#69)
3.15.1 / 2018-03-20
fixes
- [
3fbf862] - fix: mockSession save (#68) (TZ | 天猪 <atian25@qq.com>)
3.15.0 / 2018-03-08
features
- [
9857065] - feat: add unexpectHeader() and expectHeader() (#67) (fengmk2 <fengmk2@gmail.com>) - [
f1820d7] - feat: mm.app() support server event (#65) (fengmk2 <fengmk2@gmail.com>)
3.14.1 / 2018-02-28
fixes
- [
d38d615] - fix: mockUrl accepts RegExp (#64) (Brick <brick.c.yang@gmail.com>)
others
- [
23c1075] - test: add post with multipart file test cases (#63) (fengmk2 <fengmk2@gmail.com>)
3.14.0 / 2017-12-12
others
- [
be9bcd2] - refactor: modify d.ts and support bootstrap (Eward Song <eward.song@gmail.com>)
3.13.1 / 2017-10-17
fixes
- [
9d071b2] - fix: support mock the same property multiple times (#61) (Yiyu He <>)
3.13.0 / 2017-10-10
features
- [
30ca0c9] - feat: port can be customized (#60) (Haoliang Gao <sakura9515@gmail.com>)
3.12.2 / 2017-09-22
fixes
- [
5935564] - fix: missing methods package (dainli <dainli@outlook.com>)
others
- [
e7f518a] - fix(mockHttpclient): should use the copy of mockResult (#58) (Haoliang Gao <sakura9515@gmail.com>)- [new tag] 3.12.1 -> 3.12.1
3.12.1 / 2017-09-13
others
- [
e7f518a] - fix(mockHttpclient): should use the copy of mockResult (#58) (Haoliang Gao <sakura9515@gmail.com>)
3.12.0 / 2017-09-12
others
- [
25a0e28] - feat(mockHttpclient): use Regular Expression for matching url (#57) (Haoliang Gao <sakura9515@gmail.com>)
3.11.0 / 2017-09-11
features
- [
f1a08a6] - feat: support httpRequest().get(routerName) (#56) (fengmk2 <fengmk2@gmail.com>)
3.10.0 / 2017-08-30
features
- [
f3654df] - feat: base promise to support async function (#55) (Yiyu He <>)
3.9.1 / 2017-08-14
fixes
- [
d6cafaa] - fix: fix agent type after ready (#54) (zōng yǔ <gxcsoccer@users.noreply.github.com>)
3.9.0 / 2017-08-02
features
- [
9e1642c] - feat: add bootstrap (#53) (Yiyu He <dead-horse@users.noreply.github.com>)
3.8.0 / 2017-06-21
- deps: upgrade dependencies (#51)
- test: disable coverage when mm.cluster (#50)
3.7.2 / 2017-06-07
- fix(httpclient): miss headers on options when emit response (#49)
3.7.1 / 2017-06-01
- fix: detect prop object type can be non string (#48)
3.7.0 / 2017-05-18
- feat: support prerequire files (#46)
3.6.1 / 2017-05-11
- fix: ignore all error on cluster mock restore (#45)
3.6.0 / 2017-05-10
- chore: add tsd (#43)
- feat: support mock function on cluster mode (#44)
- deps: upgrade dependencies (#42)
3.5.0 / 2017-04-25
- feat: mockUrllib support async function (#41)
3.4.0 / 2017-04-17
- feat: should pass when emit egg-ready (#39)
3.3.0 / 2017-04-15
- feat: add app.httpRequest() test helper (#38)
3.2.0 / 2017-03-14
- feat: mockHttpClient support mock multi methods (#35)
- test: remove userrole (#34)
3.1.2 / 2017-03-05
- fix: should pass all arguments when mockCookies (#33)
3.1.1 / 2017-03-04
- fix: egg-mock is not a framework (#32)
3.1.0 / 2017-03-02
- feat: use framework instead of customEgg (#31)
3.0.1 / 2017-02-22
- fix: app.close in right order (#30)
3.0.0 / 2017-02-13
- deps: upgrade egg (#29)
- fix: bind messenger with app and agent (#28)
- feat: [BREAKING_CHANGE] can get error from .ready() (#27)
- test: remove unuse codes (#26)
2.4.0 / 2017-02-08
- feat: listen error that thrown when app init (#25)
2.3.1 / 2017-01-26
- fix: improve proxy handler and event listener (#24)
2.3.0 / 2017-01-25
- feat: cluster-client support for mm.app (#23)
2.2.0 / 2017-01-25
- feat: reimplement mm.app (#22)
2.1.0 / 2017-01-16
- feat: support read framework from package.json (#20)
2.0.0 / 2017-01-12
- refactor: use mockHttpclient instead of mockUrllib (#19)
1.3.0 (deprecated) / 2017-01-12
- refactor: use mockHttpclient instead of mockUrllib (#19)
1.2.1 / 2017-01-09
- fix: can't override data when mockContext(data) (#18)
- fix: replace the internal link into an github link in the env comment. (#17)
1.2.0 / 2016-11-11
- feat: try to lookup egg that will be the default customEgg (#16)
- fix: don't use cache when app from cache is closed (#15)
1.1.0 / 2016-11-02
- feat: add mm.home (#14)
1.0.0 / 2016-11-01
- test: add testcase (#10)
0.0.8 / 2016-10-25
- feat: wait 10ms to close app (#13)
0.0.7 / 2016-10-25
- feat: should close agent when app close (#12)
0.0.6 / 2016-10-24
- feat: cluster should wait process exit (#11)
- docs:update readme (#9)
- docs: update readme
0.0.5 / 2016-10-11
- feat: pass opt to coffee (#7)
0.0.4 / 2016-08-16
- fix: add eggPath for new egg (#5)