Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/eggjs/mock

Mock library for egg testing.
https://github.com/eggjs/mock

fix: mockHttpclient with multi-request (#106)

e494325562b84876a96062fd061ab4f8c7787a2e authored over 5 years ago by 吖猩 <[email protected]>
fix: fix httpRequest function signature (#105)

* fix: fix httpRequest function signature

* refactor: for better intelligence

d8365368e2339f25874a7dfc1c573249ae841e8f authored over 5 years ago by Colin Cheng <[email protected]>
Release 3.23.1

272e797227d22565a83339fd79b55b8026ece8af authored over 5 years ago by TZ <[email protected]>
fix: rimraf (#104)

6be0c431ee1fd651c4f0bb6f433d7c4444b74708 authored over 5 years ago by TZ | 天猪 <[email protected]>
Release 3.23.0

96fd28bfa62491a2c266a5e71bd8cedd17740d82 authored over 5 years ago by TZ <[email protected]>
feat: mockHttpclient support fn (#103)

9ada7f004def359a0b17f3824cea946abe4ed1f2 authored over 5 years ago by TZ | 天猪 <[email protected]>
Release 3.22.4

b6549fa3e0bcf6d90cf6e2132734d6c1b03ddae3 authored over 5 years ago by TZ <[email protected]>
fix: remove egg-core deps (#101)

478581a7851d19286c4e689af421a70cae27d26d authored over 5 years ago by TZ | 天猪 <[email protected]>
Release 3.22.3

beaef0bd6825a10dd29847f602631170395d9444 authored over 5 years ago by TZ <[email protected]>
fix: throw error when an egg plugin test is using bootstrap (#100)

6174f9b37698399785b99e86f2f45630f78a084f authored over 5 years ago by TZ | 天猪 <[email protected]>
Release 3.22.2

e8801508610c721297bf85a27d340a7858a50030 authored over 5 years ago by TZ <[email protected]>
fix: should emit server (#98)

a68ca6549428e6c4dc886231d7c6b7fbefab46c6 authored over 5 years ago by TZ | 天猪 <[email protected]>
Release 3.22.1

8c7f3cf5d251a17b96a8ae37787d37bf21030b7a authored almost 6 years ago by TZ <[email protected]>
fix: d.ts typo (#97)

3f73bad59aa8acbb14399a914d31b8eb348ff493 authored almost 6 years ago by TZ | 天猪 <[email protected]>
Release 3.22.0

75b6521bd703f3b56d71cd23f5a2769d74a775f7 authored almost 6 years ago by popomore <[email protected]>
feat: add mock API for customLoader (#95)

81ed5427853067d84901c1848e630a8002ecfcf0 authored almost 6 years ago by Haoliang Gao <[email protected]>
fix: remove nonexistent type and correct typing (#96)

58d0b32a5851e4cd31492fe0e85c0e81336b6d04 authored almost 6 years ago by Sinux <[email protected]>
Release 3.21.0

55115533a8c8935c8088fbd815a668db5e3badfd authored about 6 years ago by TZ <[email protected]>
feat: bootstrap support run on jest env (#93)

be3d1466bf438a379b85429c40c510d6be7ecc26 authored about 6 years ago by fengmk2 <[email protected]>
feat: cluster mock support result (#92)

93f8009c2f4c7d7f24b361f4713e035a2f993134 authored about 6 years ago by TZ | 天猪 <[email protected]>
Release 3.20.1

ba0e181f7317e812db3589733d8f799c780ceca3 authored over 6 years ago by dead-horse <[email protected]>
deps: add egg-logger dependency (#88)

a64db33d2ee68a76f7c41303e79e37099f33b373 authored over 6 years ago by fengmk2 <[email protected]>
fix: add app.mockLog() to improve app.expectLog() more stable (#87)

4b5dbb512bf8f598d5ea5361c58ae9d40d528ff8 authored over 6 years ago by fengmk2 <[email protected]>
Release 3.20.0

820b7fe0786c88eeb34c2122bae47fb77a9c48ab authored over 6 years ago by dead-horse <[email protected]>
feat: add `app.agent.mockHttpclient()` for agent (#82)

283eef3a4f1b0bcd90cc0d6bcf6de9fe136d8503 authored over 6 years ago by limerick <[email protected]>
Release 3.19.7

a29977e598c80ed208cb4e99de34545ccab884ad authored over 6 years ago by dead-horse <[email protected]>
fix: app.messenger.broadcast send to self

cc6b976a66103dca44428e9ca4cf6e8d18b8323b authored over 6 years ago by 君羽 <[email protected]>
Release 3.19.6

609f14a1763ec74398204d5eae83b5df15a26f35 authored over 6 years ago by dead-horse <[email protected]>
fix: fix declaration merging error (#86)

00fb82eac8114f0be1a97421ea270947ea7b5efd authored over 6 years ago by 吖猩 <[email protected]>
Release 3.19.5

b99a9a2bbf30df39a15b398d93b3ca4e792ad68e authored over 6 years ago by dead-horse <[email protected]>
fix: show expectLog last 500 words on assert error (#85)

1635a9098d16df4ba4195d2e289476471bf96cb2 authored over 6 years ago by fengmk2 <[email protected]>
Release 3.19.4

786ec5e7e65ff9f4ad771d85b132dbc709d18dda authored over 6 years ago by TZ <[email protected]>
feat: .d.ts 新增继承自 mm 的 api (#81)

6e72dc6933910f6f7676abae168e33dfee9237ad authored over 6 years ago by paranoidjk <[email protected]>
Release 3.19.3

97daeb98cdc4a8b0d53fa561754a19e4e2aabbc8 authored over 6 years ago by fengmk2 <[email protected]>
fix: allow egg-core module missing (#83)

Can use egg-mock on non-egg project.

c91bf93e792c788c4cdd7cf786a45fc2ecb4511d authored over 6 years ago by fengmk2 <[email protected]>
Release 3.19.2

be06272ef9c194070c6fee5658a28891b8204dab authored over 6 years ago by fengmk2 <[email protected]>
fix: put mock restore at the end (#80)

1710f7fcfdbd8709d6b4c50817ab0c214c525378 authored over 6 years ago by fengmk2 <[email protected]>
Release 3.19.1

333c331d9fb4fdf283e53c917f195a9bcf9a3f15 authored over 6 years ago by fengmk2 <[email protected]>
fix: make sure backgroundTasksFinished() return promise (#79)

db3cb11a97ec6bdb3a70222a459241ffc3cc2c47 authored over 6 years ago by fengmk2 <[email protected]>
Release 3.19.0

6c31968e4831bbcc27d1a8b48fa070d37d6861e0 authored over 6 years ago by fengmk2 <[email protected]>
feat: should wait for background task finish on afterEach (#78)

ab5a47e12f1fea4300a44ef19aa4ba300574d18a authored over 6 years ago by fengmk2 <[email protected]>
Release 3.18.0

53228a151727595a4baae672f1eee9503e36a3c4 authored over 6 years ago by fengmk2 <[email protected]>
chore: improve tsd and add bootstrap.d.ts (#76)

ffb1187aab11bc544c4bc6c5921ca0fba28e621f authored over 6 years ago by SuperEVO <[email protected]>
feat: add `app.expectLog()` for app and cluster (#77)

helper function to assert string value in logger

f25c50a24433e251e5c9f905170cea87e3ac93e6 authored over 6 years ago by fengmk2 <[email protected]>
Release 3.17.3

ef13618f8dc1dab61f372e9b540a74fcfeaa3a29 authored over 6 years ago by TZ <[email protected]>
types: add bootstrap.d.ts (#75)

ace4fd0636a9d2a55656356b84ae408c42455e56 authored over 6 years ago by 阿林 <[email protected]>
Release 3.17.2

44f28e1a35a9da275799611ae3e75884ce86d3d0 authored over 6 years ago by popomore <[email protected]>
refactor: middleware use promise-based style (#74)

62c3dfa517b94c56c35fed8af8d9aad29e7c38d4 authored over 6 years ago by Haoliang Gao <[email protected]>
Release 3.17.1

d079b8e05a8ccc25b9faf25f3b9721a92aa03512 authored over 6 years ago by TZ <[email protected]>
fix: remove options.typescript support (#73)

939c202db5b938e17ed3e9efc003d5ba9f0d0e3c authored over 6 years ago by TZ | 天猪 <[email protected]>
Release 3.17.0

4e9484572d56f46432abfa441d1399b865725844 authored almost 7 years ago by TZ <[email protected]>
feat: support ts from env and pkg (#71)

b27c60a1ed3d7e133a080999b78a219fca372801 authored almost 7 years ago by TZ | 天猪 <[email protected]>
Release 3.16.0

35d4108bf1dc007779a7ed05db5b94c511aa2f24 authored almost 7 years ago by TZ <[email protected]>
feat: support ts (#70)

fb301815340d9f611f95814617b9f61c5eaf386f authored almost 7 years ago by TZ | 天猪 <[email protected]>
fix: mockSession save should not be enumerable (#69)

41e73a13142ae45e7cedad3fc35ce9e1f0e07a3b authored almost 7 years ago by TZ | 天猪 <[email protected]>
Release 3.15.1

e7284dda4f93bd0e86f74ae1874a9cb94e8ed93b authored almost 7 years ago by dead-horse <[email protected]>
fix: mockSession save (#68)

3fbf86232ee3c8e4944c8072e127c0f1ede1d26b authored almost 7 years ago by TZ | 天猪 <[email protected]>
Release 3.15.0

9d9fec6c5524b4ca46ce3551e4e5068b4c3c3272 authored almost 7 years ago by fengmk2 <[email protected]>
feat: add unexpectHeader() and expectHeader() (#67)

Easy to test response without some header.

985706518e9ab8be155f285490484e5a304833fc authored almost 7 years ago by fengmk2 <[email protected]>
feat: mm.app() support server event (#65)

https://github.com/eggjs/egg/pull/2146#issuecomment-369189329

f1820d70f2e266d4b18fb7062976b4c14952a16f authored almost 7 years ago by fengmk2 <[email protected]>
Release 3.14.1

1f3bc47384ffac47464b3a1aa964afc51796f9f9 authored almost 7 years ago by popomore <[email protected]>
fix: mockUrl accepts RegExp (#64)

d38d615c3f9bc79eb09c6864ab9d5833a50d029a authored almost 7 years ago by Brick <[email protected]>
test: add post with multipart file test cases (#63)

23c1075f5aaaa866b0243061d0eadf21ce67d382 authored almost 7 years ago by fengmk2 <[email protected]>
Release 3.14.0

13bd1a00e9e0dd455a08525c9002563164711a8b authored about 7 years ago by popomore <[email protected]>
refactor: modify d.ts and support bootstrap

be9bcd22c91044b0efdbc3db6b8109cf625002b1 authored about 7 years ago by Eward Song <[email protected]>
Release 3.13.1

27da33787b4f8a0e3894f5a3d6266644b339c2f8 authored about 7 years ago by popomore <[email protected]>
fix: support mock the same property multiple times (#61)

9d071b28c5ef341ee63ccb06f00f724922c698b2 authored about 7 years ago by Yiyu He <[email protected]>
Release 3.13.0

28f0a5e1af7a775151bf569561096c8b33fe428e authored about 7 years ago by popomore <[email protected]>
feat: port can be customized (#60)

30ca0c980f3ee8b1f60f5213f0768fe5eeaaf49a authored about 7 years ago by Haoliang Gao <[email protected]>
Release 3.12.2

4688755f1c50c5df5f7b90ddfc6ea6478bec1c99 authored over 7 years ago by popomore <[email protected]>
fix: missing methods package

5935564d1e649f8702c0f3f79e67efde10717542 authored over 7 years ago by dainli <[email protected]>
Release 3.12.1

f171af6b0de06a59218239ddc6d77b2654dcd019 authored over 7 years ago by fengmk2 <[email protected]>
fix(mockHttpclient): should use the copy of mockResult (#58)

e7f518a92e1686973bea557eb0a21f1d293ab0b4 authored over 7 years ago by Haoliang Gao <[email protected]>
Release 3.12.0

fd7dc20ee5bf393e73a74bc1e2b470670e9d91d3 authored over 7 years ago by dead-horse <[email protected]>
feat(mockHttpclient): use Regular Expression for matching url (#57)

25a0e28e85209ec08a593b38cd434ed389ef8887 authored over 7 years ago by Haoliang Gao <[email protected]>
Release 3.11.0

fcea56f62b7cd67a799ff5a60d5a03ab29264974 authored over 7 years ago by fengmk2 <[email protected]>
feat: support httpRequest().get(routerName) (#56)

```js
app.httpRequest()
.get('home')
.expect(200);
```

f1a08a654a08313c0848828ee9051f8bf174fc6a authored over 7 years ago by fengmk2 <[email protected]>
Release 3.10.0

b40ef3022bda86f9bd1156070cec5f305acba95b authored over 7 years ago by fengmk2 <[email protected]>
feat: base promise to support async function (#55)

* fix: don't throw if cannot remove log dir

f3654df99d4bee2ea0ee1ef580af7af66f21255d authored over 7 years ago by Yiyu He <[email protected]>
Release 3.9.1

edae977bc04b2dd253177060d0605823742c3ffe authored over 7 years ago by popomore <[email protected]>
fix: fix agent type after ready (#54)

d6cafaa531d9bbcc0fc987e7d6fdefd6a515e785 authored over 7 years ago by zōng yǔ <[email protected]>
Release 3.9.0

5247e8f79fc02406bf5599d434d2d2e7e8c5eb93 authored over 7 years ago by dead-horse <[email protected]>
feat: add bootstrap (#53)

9e1642c7fc569d3cc4a73c9ede6511a18cca6fc5 authored over 7 years ago by Yiyu He <[email protected]>
Release 3.8.0

76968212c41d76a5e7b40a958ce536fb591062bb authored over 7 years ago by fengmk2 <[email protected]>
deps: upgrade dependencies (#51)

0cb1ae9ea082e49d400a8ee6b32dee1e996c85ff authored over 7 years ago by Haoliang Gao <[email protected]>
test: disable coverage when mm.cluster (#50)

03ca8896e93685f24494a1d69e6e23b19e33e5c4 authored over 7 years ago by Haoliang Gao <[email protected]>
Release 3.7.2

3ab5641d84aa1611ef08a17259399299deb4505a authored over 7 years ago by popomore <[email protected]>
fix(httpclient): miss headers on options when emit response (#49)

021c77473079f42ea4d956a86902e02b3fe8ef58 authored over 7 years ago by Haoliang Gao <[email protected]>
Release 3.7.1

a10a4ac171e5e6225ecaa22d9f92732b05818b8a authored over 7 years ago by fengmk2 <[email protected]>
fix: detect prop object type can be non string (#48)

7bf4e6fac264fee4756235e320c4d71783846597 authored over 7 years ago by fengmk2 <[email protected]>
Release 3.7.0

b2167f49042e4686381bb3466331f7a0f545fbe8 authored over 7 years ago by popomore <[email protected]>
feat: support prerequire files (#46)

when run coverage, istanbul will hack require compile for instrumenting files,
egg will load fi...

a71a58b99e42b4a36148ccfdc23edcb555b07f31 authored over 7 years ago by Haoliang Gao <[email protected]>
Release 3.6.1

d3695da6ec64926543827d9e6b619d7245ba873b authored over 7 years ago by fengmk2 <[email protected]>
fix: ignore all error on cluster mock restore (#45)

closes https://github.com/eggjs/egg/issues/888

ed05655df092d157b391a38b0e315c7f9434b676 authored over 7 years ago by fengmk2 <[email protected]>
release 3.6.0

80ce5d000dda466da0579a6d87ca056ec6c21edb authored over 7 years ago by popomore <[email protected]>
chore: add tsd (#43)

28c3467b6c13eaef724ec75bcf05a6ad567a2400 authored over 7 years ago by Eward Song <[email protected]>
feat: support mock function on cluster mode (#44)

2f15686d6cd9786410313bddb7a5ef660f2b4e5c authored over 7 years ago by fengmk2 <[email protected]>
deps: upgrade dependencies (#42)

211c0e33569e3510d2e00780be8c2e0efc27d9b4 authored over 7 years ago by Haoliang Gao <[email protected]>
Release 3.5.0

4354b1ff5a9b8bef63c7d6ef98ad8fbc74087fff authored over 7 years ago by fengmk2 <[email protected]>
feat: mockUrllib support async function (#41)

9854ede67f2039097af5321182d1989656312a2a authored over 7 years ago by Haoliang Gao <[email protected]>