Ecosyste.ms: OpenCollective

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

nock

HTTP mocking and expectations library for Node.js
Collective - Host: opensource - https://opencollective.com/nock - Code: https://github.com/node-nock/nock

docs: all-contributors setup (#1454)

github.com/nock/nock - eaf4e45bbd0cd60e40dba1c1fd7fb909713845ee authored about 5 years ago by allcontributors[bot] <allcontributors[bot]@users.noreply.github.com>
Add todo comments

github.com/nock/nock - fd5aa906efa9aa423eb99fcee009fe067f24f7ec authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 83d0640365789fdfbd268fad09c764aa4e3d4d5d authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
docs: RFC 001: Analysis of lifecycle methods (#1474)

github.com/nock/nock - 2cd89bba8f1a25def34623b13a7ee0e116e2a02c authored about 5 years ago by Paul Melnikow <[email protected]>
test(interceptor): special Host header matching logic (#1622)

For #1404

Add tests for the success, reject, and ignore cases.

github.com/nock/nock - 25a25115affa53931fe7a3c15190dcdd22a0d103 authored about 5 years ago by Matt R. Wilson <[email protected]>
test(test_complex_querystring): Rewrite using got, qs, async/await (#1313)

github.com/nock/nock - c87af429d06a2e15a141dfab29e048fe0acf3d1d authored about 5 years ago by Paul Melnikow <[email protected]>
fix(intercept): Better error message when options is falsy (#1440)

github.com/nock/nock - a8e99dc585b0ed2bfa281e6b1784bfc79a7ee800 authored about 5 years ago by Paul Melnikow <[email protected]>
Throw when method is missing

github.com/nock/nock - 4a3cfacfb9f960acdb34326cc960feb00677f6aa authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(test_redirects): Rewrite using got, async

github.com/nock/nock - 7058cfdff75821c8f6af885f47ccfe4e70393703 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Replace homegrown buffer compare with library method

github.com/nock/nock - d9e61988d0131e73ac637b221cdd7489519dd683 authored about 5 years ago by Paul Melnikow <[email protected]>
test: Improve tests for header matching with function; adopt new promise-rejection assertion (#1481)

1. Assert the expected argument is passed. (It's the correct argument, though not the expected t...

github.com/nock/nock - 6069784b8e70c51bfbbb2f20aa54100d2d7d8d66 authored about 5 years ago by Paul Melnikow <[email protected]>
docs: Add some FAQ questions (#1449)

docs: Add some FAQ questions

Co-authored-by: Gregor Martynus <[email protected]>

github.com/nock/nock - c2836fb4aa7a12612c412506dbd3fc0e620abbdc authored about 5 years ago by Richard Littauer <[email protected]>
chore(package): update superagent to version 5.0.2

Closes #1487

github.com/nock/nock - 088441b7fefc66cff95949eca54a40b9c1d58cd3 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
feat(request_overrider): Set `IncomingMessage.client` for parity with real requests

`ClientMessage.socket` is an instance of our `socket` class. As that class’ constructor sets `au...

github.com/nock/nock - b35d358c957301b870ad958c331e3ec742796f68 authored about 5 years ago by Paul Melnikow <[email protected]>
Update tap to the latest version 🚀 (#1559)

* chore(package): update tap to version 14.0.0

* chore(package): update lockfile package-lock...

github.com/nock/nock - 5aa6d7c144ea5b6e7b9f4113ded34cc36a9854ac authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test: gently rework tests of RequestOverrider and move into their own file (#1550)

github.com/nock/nock - f4e408ca0b380a7d150195ed57ca4600bc80fe87 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(overrider): cleanup socket event logic

Changes the logic around socket events in the Request Overrider, which
had comments that correct...

github.com/nock/nock - 2647af72d40cd5ace3f33a8a5442f8ad891622dd authored about 5 years ago by Matt R. Wilson <[email protected]>
test(test_intercept): Cover end after abort

github.com/nock/nock - cf9a9b1e62498101704becf8b7d6bd196855927a authored about 5 years ago by Paul Melnikow <[email protected]>
feat(overrider): added support for header modifications before end()

* fix: added support for testing header modification with http-proxy
* Remove pointless options...

github.com/nock/nock - 85268dd4be95cca0a2087392decd7edd96e7f302 authored about 5 years ago by Alex Gilleran <[email protected]>
fix: `req.end(cb)` compatibility with Node 12 (#1551)

github.com/nock/nock - 5394c7cf667a177dee80a13df3b38abd07df9498 authored about 5 years ago by Paul Melnikow <[email protected]>
fix: Fix `req.end(cb)`; prevent TypeError in Node 12 (#1547)

According to the docs, `req.end` can accept callback as a first argument. That's what `got` modu...

github.com/nock/nock - 529c93d16dc71fc8d94b9c1e9c3b4dc4da9ce808 authored about 5 years ago by Andrii Kostenko <[email protected]>
refactor(intercept): Remove dead code (in Node 8+)

github.com/nock/nock - 1cbd1166c4e4d37f1430695ddc886d96f8c95fd6 authored about 5 years ago by Paul Melnikow <[email protected]>
chore(readme): fix a typo (#1545)

github.com/nock/nock - 3734cf700c084cefc37204e1092fb864b07e11c1 authored about 5 years ago by HiiTea <[email protected]>
fix: Restore behavior of Interceptor.filteringPath (#1543)

Calling `filteringPath` on the intercept instance was broken as the transform fn set on the scop...

github.com/nock/nock - 322e162fd8c707085782c9921dc98542eaa27812 authored about 5 years ago by Matt R. Wilson <[email protected]>
test: Test reply header arrays, args to header functions, and minor updates (#1541)

Related discussion at #1542.

github.com/nock/nock - 547d7658ddd884381bc4e23c2ecce4d6709ee104 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(intercept): Remove dead code for unreachable edge case

github.com/nock/nock - b2730bd82dd829e7f32d33c4a2864c59dcdc5715 authored about 5 years ago by Paul Melnikow <[email protected]>
Improve tests of .reply() with a synchronous function (#1521)

- Add several tests for several missing edge cases.
- Rewrite the test for #1222 so it reflects...

github.com/nock/nock - 98d002245c3af317bafc8c2c33bf8e0dbe4b94cc authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 69255efa12c57f3b3eda087f3d15cc7bf92fc3c7 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
chore(package): update eslint-plugin-node to version 9.0.0

github.com/nock/nock - bb9ca1a7782bc2d17bc820b937b19e152e5f297d authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
Clean lint

github.com/nock/nock - a1025a6be6be8810df662dce0371892d6d27aa5c authored about 5 years ago by Paul Melnikow <[email protected]>
test: Clarify that cleanAll removes persistent mocks (#1647)

Closes #1042

github.com/nock/nock - 529bb96ddc027458909807f2ad770128ad7795fc authored about 5 years ago by Paul Melnikow <[email protected]>
Remove redundant test (#1456)

This test is redundant with this one in `test_delay.js`:

```js
test('calling delay could cau...

github.com/nock/nock - 7137afef2a701dcf42c4e31c4ce483d75360e65b authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - ec172ab052c85f19f8bac0270e0e2f3b96f1ca72 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test(intercept): Cover nock resets during request

github.com/nock/nock - 443b21b59699e3b771f2cf8fa09dfc16f47db91a authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(restoreOverriddenRequests): Eliminate uncovered line

github.com/nock/nock - ec40702228dea31ae181e205ea2bef83fadb3d37 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(scope): Replace unreachable conditional with an assertion (#1531)

Several hours have been spent on this puzzling bit of uncovered code. I can’t remember what the ...

github.com/nock/nock - 48033116417d110993526395377dd9b521bed54f authored about 5 years ago by Paul Melnikow <[email protected]>
test: Add test of DELETE request

Ref #1534

github.com/nock/nock - 6eea82c1acc7b3e46bc32e562fadae10f560ceab authored about 5 years ago by Paul Melnikow <[email protected]>
Split out several small groupings of tests (#1426)

As we've discussed before `test_intercept.js` is particularly unmanageable.

Rather than take ...

github.com/nock/nock - 531f042c5c3c47624fcbaf89d8945e9c03e845a8 authored about 5 years ago by Paul Melnikow <[email protected]>
chore: Correct sorting of one test

github.com/nock/nock - 20ae00efcd147be3818a70f73d35b27b8c8f376e authored about 5 years ago by Paul Melnikow <[email protected]>
refactor(tests): Rewrite some tests of delay and define using async/got (#1522)

github.com/nock/nock - b9e692491b50f66680daf3f362d82e6659bcb998 authored about 5 years ago by Paul Melnikow <[email protected]>
test(intercept): Reference the issue

github.com/nock/nock - f95280ac535a3051508471b05572c81555a0ef04 authored about 5 years ago by Paul Melnikow <[email protected]>
feat(interceptor): duplicate query keys throw

Resolves #1623

BREAKING CHANGE: Providing a duplicate search parameter to the `query`
method th...

github.com/nock/nock - c3210e57e838295e8d5fdeb61a1f3097a7bf35cd authored about 5 years ago by Matt R. Wilson <[email protected]>
refactor: Refactor RequestOverrider (#1674)

This makes RequestOverrider into a class and breaks its logic up into several shorter methods. T...

github.com/nock/nock - 58bf529cc36b0f41f0782668007db3b58a16458b authored about 5 years ago by Paul Melnikow <[email protected]>
chore(request_overrider): Update coverage TODOs

I worked on this file quite a bit since this comment was written. At this point the remaining wo...

github.com/nock/nock - 92a677adad5807fac0debac175aeacb636ba26a0 authored about 5 years ago by Paul Melnikow <[email protected]>
fix(define): Throw error when legacy reply is in wrong format

Shockingly, `_.isNumber(NaN)` is `true` which means this conditional check didn’t even work as i...

github.com/nock/nock - b378b790bcefbaf44695b2abf9b65170d7f73f84 authored about 5 years ago by Paul Melnikow <[email protected]>
fix: package.engines is supposed to be an object

https://docs.npmjs.com/files/package.json#engines

github.com/nock/nock - 79f261669485d02a76d8d1163ba2dcd6049216b2 authored about 5 years ago by Paul Melnikow <[email protected]>
test(test_request_promise): Remove a library-specific test

This use cases seems to be covered by tests in `test_ipv6.js`.

Goes along with our decision in ...

github.com/nock/nock - f8f88ff06b0322c8ccca61dbe214f35817a2e033 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: organize the tests of .reply(), .replyWithFile(), and .replyWithError() to make them more digestible (#1518)

github.com/nock/nock - c1919bcae78697b9c6ef16cd6fbf6a831869d4c5 authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - a02ae3bef0cd57ab5170ac3e662ff4bb6033c1da authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test(removeInterceptor): Rewrite using async / got (#1366)

github.com/nock/nock - 9eb248910fa67250b117c98ed13a8327cc339e80 authored about 5 years ago by Paul Melnikow <[email protected]>
chore(package): update tap to version 13.0.3

Closes #1511

github.com/nock/nock - 3cf5d7f31074b7d4cb3a15ef682ea821889049ab authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
fix(package): update propagate to version 2.0.0

github.com/nock/nock - 75df23e15e1d4fa54924543ddf08768d0cf42a5b authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
chore(package): update lolex to version 4.0.1

github.com/nock/nock - 637e158160ab9d83185300b3547f09623b3443f0 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
style: Style fixes, mostly destructuring (#1344)

github.com/nock/nock - 0e97cc5e50f329a03e1c6f27f2aa0dffbea6a81d authored about 5 years ago by Paul Melnikow <[email protected]>
fix: Mock responses should fire when timers are mocked (#1336)

Fix picked from #1335.

Revert #1270. Fix #1334.

github.com/nock/nock - 15b381cc75bc253c54b3ab39ed6e2033c652a895 authored about 5 years ago by Chengxuan <[email protected]>
docs(README): minor typo fixes and grammatical changes (#1507)

github.com/nock/nock - e78fd3ff4acca367ccd5ac005ef897b15a2c98cd authored about 5 years ago by Justin Vallelonga <[email protected]>
chore(package): update lockfile package-lock.json

github.com/nock/nock - 06469e318505433adc89e1fc97e899cf5b884d59 authored about 5 years ago by greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
test(test_back): Fix test broken in merge conflict

github.com/nock/nock - dda22f85b9014fd8b1255fc3d368c1cc780818e6 authored about 5 years ago by Paul Melnikow <[email protected]>
feat: Add `conditionally()` (#1488)

I am building a test framework which depends on nock and to support concurrency, I need to be ab...

github.com/nock/nock - 85ec7ed7ac835092c2cec79daf6f9caa05d3e486 authored about 5 years ago by Paris Holley <[email protected]>
fix: Fix `.matchHeader()` with `allowUnmocked` (#1480)

- Move header checks into `match()`.
- Rename internal method `matchIndependentOfBody()` to `ma...

github.com/nock/nock - f1581593d481ab793abe6a52c35394a36785e2d4 authored about 5 years ago by Daniel Mora <[email protected]>
docs(README): badges (#1309)

github.com/nock/nock - 15cf88e30f178750fa39dbc8c05cf89bd81e7162 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Fix two tests that don’t work on an airplane (#1679)

github.com/nock/nock - 6a0958585580a5dc3890837a5d965b092ca6fed9 authored about 5 years ago by Paul Melnikow <[email protected]>
Add coverage ignores to recorder, and emit text report (#1608)

Ref https://github.com/nock/nock/issues/1404#issuecomment-509347456

This leaves intact two mi...

github.com/nock/nock - ba15ec07d16d0a6c83486be6da464bd12a2d26a1 authored about 5 years ago by Paul Melnikow <[email protected]>
feat(reply): Response headers to more closely match Node's functionality. (#1564)

* Response headers to more closely match Node.

Updates the header handling in the `Intercepto...

github.com/nock/nock - 80280a50a007143e66362bccd9ac97c802c2d272 authored about 5 years ago by Matt R. Wilson <[email protected]>
test(test_intercept): Rewrite more intercept tests using async, got (#1350)

github.com/nock/nock - ccc21ba97abe8ece904883596411484f3cf9431a authored about 5 years ago by Paul Melnikow <[email protected]>
test: change tests to use test domain (#1639)

github.com/nock/nock - f6b25f90084bf96766ccda217bb34d09ba2ba116 authored about 5 years ago by Matt R. Wilson <[email protected]>
Create FUNDING.yml

github.com/nock/nock - c581fbc826db87728997d187f78d30d88cf6d72b authored over 5 years ago by Gregor Martynus <[email protected]>
build(package): update semantic-release to latest version

github.com/nock/nock - fc7dfc7aeb3d3e80387fedc090e6db0c1be870fe authored over 5 years ago by Gregor <[email protected]>
fix: Mock responses should fire when timers are mocked (#1335)

Revert #1270. Fix #1334.

github.com/nock/nock - cb56669e0bee13dfa9c668ecb3d0efb714f6240c authored almost 6 years ago by Chengxuan <[email protected]>
fix: package.engines shows incorrect versions and is supposed to be an object

github.com/nock/nock - 0c4edd6741dc6ecf66857b14c75d0bff0a5b8129 authored almost 6 years ago by Paul Melnikow <[email protected]>
ci(package): update semantic-release to beta.13

github.com/nock/nock - 743102af70f5c7f2fb5b66ae2a196be04ee5a0f2 authored almost 6 years ago by Gregor Martynus <[email protected]>
ci(travis): run release stage on [Version].x, next, beta branches

github.com/nock/nock - c5945a730ba3c7f900c980be06d7a1a06dd6f63f authored almost 6 years ago by Gregor Martynus <[email protected]>
docs(CONTRIBUTING): Backport a fix / feature to a previous version

github.com/nock/nock - e0424c0dc6c408e5d25ae205ea769b0815343333 authored almost 6 years ago by Gregor <[email protected]>
ci(travis): build on branches for semantic-release preview/next/maintenance releases

github.com/nock/nock - bb602ccd53922b8b3c959dab16a3cea497b67e4f authored almost 6 years ago by Gregor <[email protected]>
build(package): update semantic-release to ^16.0.0-beta.10

github.com/nock/nock - e5ee2b5b18edeb7ffece708e97390cd1b66ae162 authored almost 6 years ago by Gregor <[email protected]>
test(test_back): Improve style and readability

github.com/nock/nock - 46c1156a494808cbfe40ffa51c8f19cd3468ca1f authored almost 6 years ago by Paul Melnikow <[email protected]>
build(package): explicitly pipe lcov output to coveralls

github.com/nock/nock - 16fb5bdc312989a2dff33a5862ee8b8f463601d8 authored almost 6 years ago by Gregor <[email protected]>
ci: remove obsolete coveralls configuration

github.com/nock/nock - dcc959931684eabf104a80619600f4dafabfbe5a authored almost 6 years ago by Gregor <[email protected]>
test(test_s3): Add fixme comment

github.com/nock/nock - b39172f0886aacf58c541eb8fef86e10c9602eb0 authored almost 6 years ago by Paul Melnikow <[email protected]>
test(test_aws_dynamo): Remove AWS Dynamo functional test

This reverts 90662fc1fcc74586b157dddd5a408a692579ff20 which added a wide-bracket functional test...

github.com/nock/nock - 5c67b46ed2ed74abed05430eb3991332c35dd241 authored almost 6 years ago by Paul Melnikow <[email protected]>
test(test_abort): Improve style + readability

github.com/nock/nock - c010b097a524ce68cf416f6f5fbe4b51c47d9ca8 authored almost 6 years ago by Paul Melnikow <[email protected]>
test: Replace lodash with native in tests

github.com/nock/nock - 14816f9605d7807d110b3ed30745984bfb822748 authored almost 6 years ago by Paul Melnikow <[email protected]>
chore: Ignore ‘tests/ssl/index.js’ for coverage

github.com/nock/nock - ab3c181f04235341a54eaf2bb3893e3afd5f20ff authored almost 6 years ago by Paul Melnikow <[email protected]>
Clean lint

github.com/nock/nock - cefeb4756c88a7620db63a07ee3dc409eeec32a5 authored almost 6 years ago by Paul Melnikow <[email protected]>
test(test_recorder): De-airplane remaining recorder tests

github.com/nock/nock - 57bb2a7fe3f1c97f3c5cdedb5745197e58ac2a05 authored almost 6 years ago by Paul Melnikow <[email protected]>
build(package): pipe to coveralls by setting ENV variable

github.com/nock/nock - 826b0c55d405ba07415a5ee512ea5e16544a7c19 authored almost 6 years ago by Gregor <[email protected]>
test(test_recorder): De-airplane more recorder tests

Ref #1077

github.com/nock/nock - 51f3223599d7831424f81ee83ea8ae05dfb7fbb2 authored almost 6 years ago by Paul Melnikow <[email protected]>
test(test_recorder.js): Remove AIRPLANE from a bunch of tests

Ref #1077

github.com/nock/nock - eb4132dbee1460284334adee7babd98250ab8533 authored almost 6 years ago by Paul Melnikow <[email protected]>
chore: remove obsolete comment

[skip ci]

github.com/nock/nock - bc364139dafd4eb080ceda0f9d2e070599d95838 authored almost 6 years ago by Gregor Martynus <[email protected]>
test: remove airplane mode for "records objects" test

github.com/nock/nock - 0fd98355624f07eb78c76c4ff0be3ecf4653f7b6 authored almost 6 years ago by Gregor <[email protected]>
test(test_recorder.js): Fix records test

github.com/nock/nock - cb036b577d288b411ef80f15033e8f4fe2358457 authored almost 6 years ago by Richard Littauer <[email protected]>
Merge pull request #1277 from nock/1077/remove-airplane-mode-from-test_knock_off

remove AIRPLANE mode from test_nock_off

github.com/nock/nock - abf7e8fe8086ff3153773b947b64f0c6b2771a5e authored almost 6 years ago by Richard Littauer <[email protected]>
test: remove airplaine mode from test/test_nock_off.js (#1077)

github.com/nock/nock - db44b4d3ad79e6649a115e47e7276515d08975a8 authored almost 6 years ago by Gregor <[email protected]>
test(test_intercept.js): Remove pointless reqheaders test

After studying this test for a good hour with @RichardLitt and @jlilja, we determined that it wa...

github.com/nock/nock - 19d8c6d6ba87602159972e40bf354888985fe8ca authored almost 6 years ago by Paul Melnikow <[email protected]>
Merge pull request #1275 from nock/feat/netconnect-1077

test(test_intercept.js): Test enableNetConnect without AIRPLANE

github.com/nock/nock - f72093c2fbfeedb626078a41c3b1b8014d8c2888 authored almost 6 years ago by Richard Littauer <[email protected]>
Merge pull request #1274 from nock/feat/tests-pass-through

tests: passthrough 1077

github.com/nock/nock - 588c03f8e88cd2e79f1c8bc0bcaa69928fe09553 authored almost 6 years ago by Richard Littauer <[email protected]>
test(test_intercept.js): Test enableNetConnect without AIRPLANE

Ref #1077

github.com/nock/nock - 46dde55358bad1afa4fe9e6371374edd508d4567 authored almost 6 years ago by Paul Melnikow <[email protected]>
tests: passthrough 1077

This adds server capabality to allow pass throughts for a couple of intercept tests. See #1077.

github.com/nock/nock - 2dae10d30878a8ca3fd1765eeef2af2add88744f authored almost 6 years ago by Richard Littauer <[email protected]>
chore(setImmediate): use global.setImmediate instead of timers.setImmediate

When unit testing, it is not uncommon to mock the clock. This includes
controlling when setImmed...

github.com/nock/nock - a4612190900778dbea867d24af0ea56a84f41b64 authored almost 6 years ago by Taylor Everding <[email protected]>
Merge pull request #1273 from nock/fix-lint

test: Install missing dev dependency for linting

github.com/nock/nock - 39e5d928ff02eae056bd490711c6156ef18b32e0 authored almost 6 years ago by Richard Littauer <[email protected]>