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

Release 5.10.9

[skip ci]

## [5.10.9](https://github.com/eggjs/egg-mock/compare/v5.10.8...v5.10.9) (2023-11-08)...

c09d8587d2fd8df98cf7166daa2577c38556ace0 authored about 1 year ago by semantic-release-bot <[email protected]>
fix: allow to call mockHttpclient multi times (#165)

closes https://github.com/eggjs/egg-mock/issues/164

370e42d777d89dcfde1773db6404284439b38725 authored about 1 year ago by fengmk2 <[email protected]>
Release 5.10.8

[skip ci]

## [5.10.8](https://github.com/eggjs/egg-mock/compare/v5.10.7...v5.10.8) (2023-06-21)...

038d587fc1a349a4d2c09e4029c599d840c690ec authored over 1 year ago by semantic-release-bot <[email protected]>
fix: fix mocha failed title for inject_ctx (#162)

this.fail is only safe in runTests and should
not be called in runSuite.

f6f59ac48789fb2c81dfd3025b626c2ed4090a36 authored over 1 year ago by killa <[email protected]>
Release 5.10.7

[skip ci]

## [5.10.7](https://github.com/eggjs/egg-mock/compare/v5.10.6...v5.10.7) (2023-05-29)...

2459c0df1321111bcbafde0dd96e53a5ac1f26ec authored over 1 year ago by semantic-release-bot <[email protected]>
fix: set types to index.d.ts (#161)

test: add Node.js 20

---------

Co-authored-by: fengmk2 <[email protected]>

7de47a1e6bb8d4d003b93c130d1e08c7ac0c8bf7 authored over 1 year ago by killa <[email protected]>
Release 5.10.6

[skip ci]

## [5.10.6](https://github.com/eggjs/egg-mock/compare/v5.10.5...v5.10.6) (2023-02-22)...

05026789a6a24514c5e119d86f4e3cd75fd7670c authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: disable app close on parallel (#160)

https://github.com/eggjs/egg-mock/pull/159

5a08d33ffcbc047ef374a5ab99bee00ad5675808 authored almost 2 years ago by fengmk2 <[email protected]>
test: use egg-bin v6 (#157)

https://github.com/eggjs/egg/issues/5140

6f4375c75d37dd26a56baba061d438bdf22f0413 authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.10.5

[skip ci]

## [5.10.5](https://github.com/eggjs/egg-mock/compare/v5.10.4...v5.10.5) (2023-02-16)...

ea13de09ff35f21becc9a52237120aa6ee0a484e authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: should close app on afterAll hook (#158)

081b1574c31cfe274083b21a1e11bc81304ab1d5 authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.10.4

[skip ci]

## [5.10.4](https://github.com/eggjs/egg-mock/compare/v5.10.3...v5.10.4) (2023-01-31)...

84a64bd19d0569ec94664c898fb1b28367b95d60 authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: use symbol to access suite app (#156)

a130dd307258df540b65b6d445b56681f69d9232 authored almost 2 years ago by killa <[email protected]>
Release 5.10.3

[skip ci]

## [5.10.3](https://github.com/eggjs/egg-mock/compare/v5.10.2...v5.10.3) (2023-01-30)...

6c876257feb61b9c73c232bf9b686fd063e84e58 authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: inject failed should make suite/test failed (#154)

f9f2d4c5184b2fd2a60485d9333bfefb2c42fabb authored almost 2 years ago by killa <[email protected]>
Release 5.10.2

[skip ci]

## [5.10.2](https://github.com/eggjs/egg-mock/compare/v5.10.1...v5.10.2) (2023-01-30)...

7ebe3fa256d565a435d51a2b7f692a42435c7a9b authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: make sure app ready on parallel mode (#155)

83c600e8cb8139a232f1066c2925562574102dbe authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.10.1

[skip ci]

## [5.10.1](https://github.com/eggjs/egg-mock/compare/v5.10.0...v5.10.1) (2023-01-29)...

373a057d33b60e8da39e71cd2bb3aa3aea6c8165 authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: fix mockContext with headers (#153)

mock headers when reuse context.

5e3e816395d8be37548d4bb72c3e3dc2d098bee1 authored almost 2 years ago by killa <[email protected]>
Release 5.10.0

[skip ci]

## [5.10.0](https://github.com/eggjs/egg-mock/compare/v5.9.4...v5.10.0) (2023-01-28)
...

0e8dba5c913510c773f2c968bc2f25c11b04e0e1 authored almost 2 years ago by semantic-release-bot <[email protected]>
feat: impl setGetAppCallback (#152)

b7d902cf990ee90181f24e9722f42560858118eb authored almost 2 years ago by killa <[email protected]>
feat: add default ua egg-mock/${version} (#151)

superagent not set default ua.

[skip ci]

ccb28f5a99148528459f1f8b120254f3feb64561 authored almost 2 years ago by killa <[email protected]>
Release 5.9.4

[skip ci]

## [5.9.4](https://github.com/eggjs/egg-mock/compare/v5.9.3...v5.9.4) (2023-01-18)

#...

c731841ec8695c266e86b14febe02e7220fd787a authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: use originalUrl to check mock call function request (#149)

abe1c07a2abb4b98c37a34725e4917caafe6dc7e authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.9.3

[skip ci]

## [5.9.3](https://github.com/eggjs/egg-mock/compare/v5.9.2...v5.9.3) (2023-01-18)

#...

ff796a618c8076875045a0eb0257a07b6dff78c0 authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: every it should has self ctx (#150)

bf33c1cbde00b0f10d49184bda305c2c98a58401 authored almost 2 years ago by killa <[email protected]>
Release 5.9.2

[skip ci]

## [5.9.2](https://github.com/eggjs/egg-mock/compare/v5.9.1...v5.9.2) (2023-01-17)

#...

4d44689cfbe0b4bd140bdc708cd8a5583c6b3835 authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: mocha should be peer deps (#148)

9a5fcca1ff19f2bc7d74a8122becc1bf0ddfe89d authored almost 2 years ago by killa <[email protected]>
chore: change repository url

29182fa3cc950399950690623a27eeed5f20b6b3 authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.9.1

[skip ci]

273aed30eb7f194cd3e74d300e35a3ea536da075 authored almost 2 years ago by fengmk2 <[email protected]>
chore: remove GIT_TOKEN

cffff1413ee567c74a817e71dc61a0edce7e7c88 authored almost 2 years ago by fengmk2 <[email protected]>
chore: use GIT_TOKEN

97acd8d75b4d10ec39c391484e2d1c6777d62b8d authored almost 2 years ago by fengmk2 <[email protected]>
chore: use GITHUB_TOKEN instead

c1a13c1c020dbeaed62e3c25a470d0047f7fe274 authored almost 2 years ago by fengmk2 <[email protected]>
chore: use artusjs/github-actions egg branch

98f59d3f35b22815f3c4e8d7d5e01e202be0af62 authored almost 2 years ago by fengmk2 <[email protected]>
fix: mockContextScope should return Promise (#147)

b58cb9781be41b7fb27faad80e269b55c7500bc4 authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.9.0

[skip ci]

e74c48fa281666ca5d54f50975a7bdabeae8e1dc authored almost 2 years ago by fengmk2 <[email protected]>
feat: inject tegg ctx to mocha runner (#146)

e805d2cb81d71b32511b5b1ad5d4deb9da94a3fb authored almost 2 years ago by killa <[email protected]>
Release 5.8.4

[skip ci]

## [5.8.4](https://github.com/eggjs/egg-mock/compare/v5.8.3...v5.8.4) (2023-01-12)

#...

a7c32107ec2d14879fa2dcbff0b159cffaa9dfc5 authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: only await app ready when app exists (#145)

f4ed458441449da70fd4108747377b7890dc08fb authored almost 2 years ago by killa <[email protected]>
Release 5.8.3

[skip ci]

## [5.8.3](https://github.com/eggjs/egg-mock/compare/v5.8.2...v5.8.3) (2023-01-11)

#...

06e583155b9f4cab910684e6a569482eeeed1349 authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: app should wait for agent ready on parallel mode (#144)

205e836ba11a869da208c441a9b90edd6e61b3b1 authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.8.2

[skip ci]

## [5.8.2](https://github.com/eggjs/egg-mock/compare/v5.8.1...v5.8.2) (2023-01-10)

#...

587ccec54033f1dd5b2ac3e75a074da89ba1fdfe authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: ignore bootstrap error on non egg project (#142)

880c282481024005456074a123b4b1f185971f4c authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.8.1

[skip ci]

## [5.8.1](https://github.com/eggjs/egg-mock/compare/v5.8.0...v5.8.1) (2023-01-09)

#...

9724299aec1bff3dc4a04195300d0d4e130f316b authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: add register.js to files (#141)

a87e8019724dbb2401bd41ccf95be26c571e8e8f authored almost 2 years ago by killa <[email protected]>
Release 5.8.0

[skip ci]

## [5.8.0](https://github.com/eggjs/egg-mock/compare/v5.7.1...v5.8.0) (2023-01-09)

#...

0122dc352abffc4af9df5ec58268cb292eda12b9 authored almost 2 years ago by semantic-release-bot <[email protected]>
feat: use mocha global hook to register before/after (#140)

9ef65de3382c15c5fdeff2e8d0b14eed8144a41b authored almost 2 years ago by killa <[email protected]>
Release 5.7.1

[skip ci]

## [5.7.1](https://github.com/eggjs/egg-mock/compare/v5.7.0...v5.7.1) (2023-01-07)

#...

fcdad736a99fdc582905b9dbb29189a9b77625ee authored almost 2 years ago by semantic-release-bot <[email protected]>
fix: should add egg to peerDependencies (#139)

2134fc73661e4c2de433aceda2ea45811c8bff8b authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.7.0

[skip ci]

## [5.7.0](https://github.com/eggjs/egg-mock/compare/v5.6.0...v5.7.0) (2023-01-03)

#...

d5b5b263ae403067042099d5807d8fe916f40ff3 authored almost 2 years ago by semantic-release-bot <[email protected]>
feat: remove power-assert (#138)

https://github.com/eggjs/egg-bin/pull/197

0c9fad2f7a6f739080f2b996d8f6bb98852af12a authored almost 2 years ago by fengmk2 <[email protected]>
Release 5.6.0

[skip ci]

## [5.6.0](https://github.com/eggjs/egg-mock/compare/v5.5.0...v5.6.0) (2023-01-03)

#...

30a83f9bed837441f20c205d2c678ca34a3d9f14 authored about 2 years ago by semantic-release-bot <[email protected]>
feat: upgrade globby to v11 (#137)

b0af3eb471a394448236e4cb18863e60218e0d2a authored about 2 years ago by fengmk2 <[email protected]>
Release 5.5.0

[skip ci]

## [5.5.0](https://github.com/eggjs/egg-mock/compare/v5.4.0...v5.5.0) (2022-12-28)

#...

7345fae4849c1740df19a0ee49951c64555ca34c authored about 2 years ago by semantic-release-bot <[email protected]>
feat: add mockContextScope (#136)

Get async local storage in scope is safe.

9db9afaadfb73a58d03b3cbdbd0c8c6515e6578a authored about 2 years ago by killa <[email protected]>
chore: auto release (#135)

b7c5bb1c943adc8191ba39bd52566c45cf88c574 authored about 2 years ago by fengmk2 <[email protected]>
Release 5.4.0

b9fe73630b421f3e24848c68233f23ebf56b9995 authored about 2 years ago by fengmk2 <[email protected]>
📦 NEW: Allow restore mockAgent only (#134)

0bd71bc732b430f679854cceb5017238aca67f38 authored about 2 years ago by fengmk2 <[email protected]>
Release 5.3.0

6fdaf45ca77e8c7bdc2ed1b242bd0436960a22b0 authored about 2 years ago by fengmk2 <[email protected]>
📦 NEW: mock context support ctxStorage (#133)

6608f01983b6891fad2eea758e426bb205dff117 authored about 2 years ago by fengmk2 <[email protected]>
Release 5.2.1

2ba62667e44f0b7eaa7608cb0979b409ebc08339 authored about 2 years ago by killagu <[email protected]>
fix: use global hook for register global hook (#132)

18c366d4d8f110e8b5e166bb4109be6659f59dd2 authored about 2 years ago by killa <[email protected]>
Release 5.2.0

7054d885467bc0199032ec6a9b75789ff2c0f358 authored about 2 years ago by killagu <[email protected]>
feat: add EGG_FRAMEWORK for bootstrap custom framework (#131)

209c921cd07eeb541793d5eb28a4982c891ef337 authored about 2 years ago by killa <[email protected]>
Release 5.1.0

a2cc71482e4c4f75dac4a7d2dab4a1946eff74ba authored about 2 years ago by killagu <[email protected]>
feat: impl parallel app for mocha parallel mode (#130)

- use mochaGlobalSetup/mochaGlobalTeardown to setup
agent in mocha master process.
- bootstrap...

22f508cba2f6330172db89efde3a678ed35c5258 authored about 2 years ago by killa <[email protected]>
Release 5.0.2

fbbd8af4a9f359cd0f831a30b3e6c2bbbe150b5c authored about 2 years ago by fengmk2 <[email protected]>
🐛 FIX: Should use urllib-next package (#129)

299f7ecc7314737c182c1745fce0d32c61cd657d authored about 2 years ago by fengmk2 <[email protected]>
🤖 TEST: Add httpclient streaming mocking (#128)

17a6713663555f55832c12fa12c68803a59aa925 authored over 2 years ago by fengmk2 <[email protected]>
Release 5.0.1

d1ba441491c43be3e8dd82c5467f720205617e28 authored over 2 years ago by fengmk2 <[email protected]>
👌 IMPROVE: Mock httpclient support delay ms and repeat times (#127)

ae766ff582a3e14a28b97e15bad5a56efcb542bc authored over 2 years ago by fengmk2 <[email protected]>
Release 5.0.0

30f68687f3cc30e461abe216ac47b654fa289138 authored over 2 years ago by fengmk2 <[email protected]>
📦 NEW: [BREAKING] Support egg 3.0 (#126)

- mockHttpClient support urllib3
- add `app.mockAgent()` api

60658ecae4a16ac1e52dc3238c279a61262f4620 authored over 2 years ago by fengmk2 <[email protected]>
Release 4.2.1

e58c59eb3a675d6096149ba8acea12d20fb3cade authored over 2 years ago by wanghx <[email protected]>
feat: allow other envtype (#125)

Co-authored-by: wanghx <[email protected]>

983e6106b3047f3c0b8d1871fecf4b851cb3000a authored over 2 years ago by 吖猩 <[email protected]>
📖 DOC: Change ci status badge

bb9cb79dbd3d8999cc887d1f0ea952b5df449086 authored over 2 years ago by fengmk2 <[email protected]>
📖 DOC: Update contributors

cd1f2dbd08683e60b31b83e3406c32a823124704 authored over 2 years ago by fengmk2 <[email protected]>
Create codeql-analysis.yml

74c0d8f5a9532fa9e3b3f1c29ad27b59d46ea984 authored over 2 years ago by fengmk2 <[email protected]>
🤖 TEST: Fix assert cases (#124)

6bcc8660a94c761dbdcee0a09bcd6d06e8441f49 authored over 2 years ago by fengmk2 <[email protected]>
Release 4.2.0

0a6a4a76e6297ae7358715dd0055dee1e47b5a3f authored about 3 years ago by fengmk2 <[email protected]>
feat: add mockLog, expectLog to type define (#121)

b45ad40dd572977986cd86220f090d28c1268b70 authored about 3 years ago by fengmk2 <[email protected]>
Release 4.1.0

52f1778bed1d380344a9e64e8bc58e286908c950 authored over 3 years ago by mansonchor <[email protected]>
feat: add consoleLogger error when mockApp init error

ce6ecde700a81ce986347834dbd2dc2d48217f88 authored over 3 years ago by mansonchor.github.com <[email protected]>
build: remove node@6

e7c73e37814b6c9041f37bbcd92b3bb7c35758b3 authored over 4 years ago by dead-horse <[email protected]>
Release 4.0.1

f45d32592562d5909674c14db81237120bee3786 authored over 4 years ago by dead-horse <[email protected]>
feat: httpclient support mock async function (#117)

* feat: httpclient support mock async function

* build: use github ci

d5e584e769dd348bc87a99a90f0a6003dfc7a4cf authored over 4 years ago by Yiyu He <[email protected]>
Release 4.0.0

5f5d0ea01025d358da86502fbc1f82537aa0a8a7 authored almost 5 years ago by dead-horse <[email protected]>
feat: upgrade mm@3 (#116)

c39109faa0eff01d8597c3988c04459c3520f309 authored almost 5 years ago by Yiyu He <[email protected]>
Release 3.25.1

51e1cd816ada8a0752374803d57b9d09d3f80061 authored almost 5 years ago by dead-horse <[email protected]>
fix: backgroundTasksFinished ensure all tasks finished (#115)

51ef091cbb06ae74ff7f9591e3071db648ba5346 authored almost 5 years ago by Yiyu He <[email protected]>
Release 3.25.0

98fd7e4b79737ccb606dba38b35b5087ff993b82 authored about 5 years ago by TZ <[email protected]>
feat: support init hook before mock app init (#109)

4c31c9e2917eea449e2afddf96fc8d2aabe6ad5e authored about 5 years ago by TZ | 天猪 <[email protected]>
fix: enable sendRandom() method in unittest (#114)

cbab52a697e6e47abd48ce45320b7c40a0463c12 authored about 5 years ago by GoodMeowing <[email protected]>
Release 3.24.2

3af19c3b19319354df4c21091e7181ce87f256bc authored about 5 years ago by dead-horse <[email protected]>
fix: mockLog don't read file (#113)

3bf5ded501608f2b5b3199d8b3d0ca0329dd9df7 authored about 5 years ago by Yiyu He <[email protected]>
Release 3.24.1

b49fbc9afbc257efb32b9e25c0ee7adbb4bfdeff authored over 5 years ago by TZ <[email protected]>
fix: single mode will call app.agent.close (#108)

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

e43a0dd105ef5b6b4500b54b74ded32f4e2e0f4e authored over 5 years ago by fengmk2 <[email protected]>
feat: support app.notExpectLog() (#107)

just like app.expectLog(), but negate

315e685d2059ec61e62e9109da8b58f9bf5552cd authored over 5 years ago by fengmk2 <[email protected]>
Release 3.23.2

6a1b64f11db3835496fbadbe513a1b445339af68 authored over 5 years ago by fengmk2 <[email protected]>