Ecosyste.ms: OpenCollective

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

github.com/nock/nock

HTTP server mocking and expectations library for Node.js
https://github.com/nock/nock

refactor(test): Mocha DSL for ClientRequest, complex query, & Content Encoding (#1955)

* refactor(test): Mocha DSL for ClientRequest, complex query, & Content Encoding

* refactor(t...

9348d65d80f7e7212e86901148eaed1caad03bdd authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Chai assert basic auth & body match (#1952)

Also migrated a couple tests from request > got.

92575b6b3c5731f2fd8289f353c210c683eb65ab authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Chai assert defaultReplyHeaders (#1951)

bcdb4d03f76ec7caec5c18b23f9d85695fd5b57b authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): consolidate local http server creation (#1950)

Following the same pattern used to HTTPS local servers, added a utility
that creates and listen...

10806751490999d25a33e90c909bc44adc8c2506 authored almost 5 years ago by Matt R. Wilson <[email protected]>
chore(deps): bump acorn from 7.1.0 to 7.1.1

Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1.
- [Release notes](https://g...

263fe91b1afd85d035d50236e32d54461883f698 authored almost 5 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
refactor(test): Chai assert ClientRequest & content encoding (#1945)

290889441e714f2f59992537bbd6b65ec3440618 authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Mocha DSL for header matching (#1946)

The tests themselves were not modified, but they were reorganized so the git diff is a mess.

21f2d8860b1da4f65945eec46223d473a61dd751 authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Mocha DSL for destroy & dynamic mocks. (#1941)

afbd3438464083e6feb76ede2a87c4db8da9cdac authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Chai assertions in delay tests (#1939)

06767a2d154ef552d336a9fdba5cf60ee6eb417e authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Chai assert destroy & dynamic mock (#1938)

f5821202bc37de53d4d6c834afea2ea07f039929 authored almost 5 years ago by Matt R. Wilson <[email protected]>
fix(types): remove inaccurate Scope.restore method (#1940)

This method does not exist and was added on accident.

fa3c237b75847f9589684c5c48c4b2f0bba54f0a authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): move test assets to tests dir (#1931)

Also, rename fixture files to use consistent snake_case.

2c6c9dd952957794885ef6d08a0670f7190aadd6 authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Mocha DSL for event tests (#1928)

9375dcddeb9ff2b70fd20f89c2a045b800e813ac authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Mocha DSL for fake timers and gzip (#1927)

0cfa0edcae8f6d08a6179069f7361aae0239ed11 authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Chai assert header matching (#1925)

9cbb707f17b3a2ee639b6c551291eeb5487d9e6b authored almost 5 years ago by Matt R. Wilson <[email protected]>
docs: update table of past node/nock version support (#1924)

634ff2950b01677bdedea6e0ee340337aa4cf6be authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Chai assert & Mocha DSL querystring encoding (#1926)

19bae0988e00fad6143afc0abd878e8488b6980b authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test): Mocha DSL for request overrider (#1923)

9dcd74775df082b3f8679beea7bb6ccba7ca7948 authored almost 5 years ago by Matt R. Wilson <[email protected]>
chore: remove mkdirp (#1922)

Now that we expect Node v10+, we can pass the `recursive` option to
`fs.mkdir`.

Fixes #1913

4bcefea48544dae250ddcf4baaef1342f3bbe0d4 authored almost 5 years ago by Gabe Gorelick <[email protected]>
fix: Replace a few more uses of lodash (#1916)

Ref #1285

1f47f1a1ee977df0414a9865d6f329247cb7398f authored almost 5 years ago by Paul Melnikow <[email protected]>
* chore(package): update sinon to version 9.0.0 πŸš€ (#1921)

fada855ee4298d3dacaeea830da80de0f0316b6c authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
refactor(test): Mocha DSL for common utilities (#1920)

d26f4f7de6ed3e730805d2bd5c21d143f7098fc9 authored almost 5 years ago by Matt R. Wilson <[email protected]>
refactor(test_intercept): Chai assertions for most of the tests (#1917)

a23af9763330fc16caa2d934d47b6ff03a2d1816 authored almost 5 years ago by Paul Melnikow <[email protected]>
test: Rewrite a mikeal request test and remove another (#1918)

We have a β€œcan take a port” test.

c54cec172992d2fa76f68b481eb9398d482c18c0 authored almost 5 years ago by Paul Melnikow <[email protected]>
refactor: Use Mocha DSL for test_logging (#1811)

dff1d0b5e1b12e2ee3e4d37abc00242324ace0bc authored almost 5 years ago by Paul Melnikow <[email protected]>
refactor(test): Chai assert common utilities (#1912)

All in the name of prepping for Mocha DSL.

0a22aeb2d12b60329b6facaf9e828f736c8edaa9 authored almost 5 years ago by Matt R. Wilson <[email protected]>
Update dtslint to the latest version πŸš€ (#1902)

61fb7e0bd409d0fee4565891585a461849935f66 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Update mkdirp to the latest version πŸš€ (#1857)

70a18b432f5c10d3fe70edab4c05381bf37c3aa6 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
feat: allow passing a function to `enableNetConnect()` (#1889)

* feat(1861): allow passing a function to enableNetConnect
* Add test to cover passed parameters

7f9e26c0e9e853feeabd6819827cc9c069994542 authored almost 5 years ago by Nikas Praninskas <[email protected]>
test: Update got to the latest version and fill in missing coverage (#1825)

* chore(package): update got to version 10.0.0

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

b8dd8c812bb17774fb6db4ca7e528461ae8137b0 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Drop support for String constructor (#1873)

BREAKING CHANGE: Drop support for String constructor (#1873)

When checking types of strings, No...

e33b3e86d047362d359f88f9df698f4f103a80ad authored almost 5 years ago by Paul Melnikow <[email protected]>
Do not return the `nock` global from `cleanAll()` (#1872)

BREAKING CHANGE: Do not return the `nock` global from `cleanAll()` (#1872)

0a4a944566116618bf8897d7dc6dcf943ba89fe6 authored almost 5 years ago by Paul Melnikow <[email protected]>
Require Node 10+ (#1895)

BREAKING CHANGE: Require Node 10+ (#1895)

123832ebad65c70bc501cce2b656403382e234c5 authored almost 5 years ago by Paul Melnikow <[email protected]>
ci(fix-formatting): avoid error if there are no changes to commit

addresses https://github.com/nock/nock/issues/1883#issuecomment-586746643

7fae3c8b2d921297afe0cdd1b22080367e4220ec authored almost 5 years ago by Gregor Martynus <[email protected]>
ci: improve consistency and security of the release workflow (#1907)

29eed0571b97377e5a539079a5a06064d648ce9c authored almost 5 years ago by Natan SΔ…gol <[email protected]>
ci: provide issue reference for limited caching configuration (#1908)

d5e406273500ac95bfb67ddf921b1ebd442340ab authored almost 5 years ago by Natan SΔ…gol <[email protected]>
ci: automatically commit and push formatted files (#1882)

858130e2a404d3ba03e5f8a10e439d7efa249f3d authored almost 5 years ago by Natan SΔ…gol <[email protected]>
fix: revert breaking changes from v11.9.0

062c10e6ff6755d33090036f9796c33486f457b3 authored almost 5 years ago by Gregor Martynus <[email protected]>
test: Update got to the latest version and fill in missing coverage (#1825)

* chore(package): update got to version 10.0.0

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

a2757698d835a6de695559644a3dff38ddda406b authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Drop support for String constructor (#1873)

BREAKING CHANGE

When checking types of strings, Nock will no longer recognize the String cons...

6c504c372d45b1a39c6dd2729e1e47c7cd330f20 authored almost 5 years ago by Paul Melnikow <[email protected]>
Do not return the `nock` global from `cleanAll()` (#1872)

BREAKING CHANGE

9379f0984d05bb15b29758960b6edac018a97b6f authored almost 5 years ago by Paul Melnikow <[email protected]>
Update mkdirp to the latest version πŸš€ (#1857)

e04d61df8d497d2dbacca777cb03a94809c99451 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
feat: allow passing a function to `enableNetConnect()` (#1889)

* feat(1861): allow passing a function to enableNetConnect
* Add test to cover passed parameters

566461b449e228adde0489ece9e656bdd74faff5 authored almost 5 years ago by Nikas Praninskas <[email protected]>
Require Node 10+ (#1895)

BREAKING CHANGE

11c0542f4de439fb66c5c5315ba3314abfb7faba authored almost 5 years ago by Paul Melnikow <[email protected]>
refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

1fae725c3d48be0eb3d516bacd52cc6be3b58fec authored almost 5 years ago by Matt R. Wilson <[email protected]>
ci: move semantic-release to GitHub Action

d0694a7b50dee6fb6370f416b8e3d7aef80846b5 authored almost 5 years ago by Gregor Martynus <[email protected]>
test: fix assertRejects usage (#1890)

As mentioned in https://github.com/nock/nock/pull/1889, it appears that `assertRejects` is not c...

524dd29d6f252e3c3492b266b1b0dd77d09f9bda authored almost 5 years ago by Nikas Praninskas <[email protected]>
refactor(test): Chai assert allow unmocked (#1891)

Convert assertions to Chai, prefer await over callback when appropriate, and replace Mikeal's Re...

5d3b270886299878ea670744cab3c1644ad8c934 authored almost 5 years ago by Matt R. Wilson <[email protected]>
Bump lolex and sinon (#1887)

Lolex was renamed.

5eaa5f5c3306e69804d58618def99893df70ca77 authored almost 5 years ago by Paul Melnikow <[email protected]>
fix: allowMocked when using a callback for the path (#1877)

* fix: allowMocked when using a callback for the path

When an Interceptor was created with a ...

9fdeeca7009ba8dc1b4f83b36030527f011ab665 authored almost 5 years ago by Matt R. Wilson <[email protected]>
fix: only activate once, when on (#1824)

While debugging the Jest memory leak, I was surprised to find the Nock
was "activating" twice w...

a56a20960a9633060174c5de6ee1bf9146aa48d4 authored almost 5 years ago by Matt R. Wilson <[email protected]>
Greenkeeper/semantic release 17.0.2 (#1878)

* chore(package): update semantic-release to version 17.0.2
* pin tap because 14.10.6 causes un...

8b8a10d92b4dc60032e252a92294013ed170c569 authored almost 5 years ago by Matt R. Wilson <[email protected]>
fix(types): Scope accepts legacy Url not WHATWG (#1879)

Updates the types to properly reflect that a Scope can be created with
the output of `url.parse...

e22233bd04d9fc5ed458d449e93f8f89f4a20ab6 authored almost 5 years ago by Matt R. Wilson <[email protected]>
feat(socketDelay): support options.timeout (#1848)

The current implementation only supports `req.setTimeout`, but Node.js
allows for `options.time...

061e922748c3d15fabec164042ff31e885da937c authored almost 5 years ago by Gurpreet Atwal <[email protected]>
refactor: Use Mocha DSL in test_nock_lifecycle (#1809)

c209c6b8ca134e269a8733dd493d0bec9a4f75af authored almost 5 years ago by Paul Melnikow <[email protected]>
Remove a spurious `{ retry: 0 }` (#1876)

This is set in `got_client.js`.

eac299bd3653730ab35e33795885fd4fc2c50b57 authored almost 5 years ago by Paul Melnikow <[email protected]>
ci: move format, lint and test jobs to GitHub Actions (#1814)

e863c84c868c5bb4b59ffe89f9a7688cb443918a authored almost 5 years ago by Natan SΔ…gol <[email protected]>
fix: Correct behavior when other libraries override http.get and http.request (#1868)

Thanks @kennethaasan for finding this fix!

Fix #1836

22e2fca27bc57ee1adb8559ed5da0fb1adbf8a93 authored almost 5 years ago by Paul Melnikow <[email protected]>
docs: Revise and accept RFC-001 (#1753)

921eacf91ec8b1f585e373436ce857bd9dd3c11a authored almost 5 years ago by Paul Melnikow <[email protected]>
Update mocha to the latest version πŸš€ (#1858)

* chore(package): update mocha to version 7.0.1

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

e1461a26568753d2f6e75014dc684c3c564fcff7 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
fix: Fix a regression due to Jest having different globals (#1850)

Fix a regression in 11.7.1 due to Jest having different globals: https://github.com/facebook/jes...

c7363e56ee866635514e5aaa0319232b6edd1b61 authored almost 5 years ago by Salman Mitha <[email protected]>
Update dtslint to the latest version πŸš€ (#1813)

* chore(package): update dtslint to version 2.0.0

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

fad405aa39b6dd98ecdc70432170e7b31abcbd95 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Update sinon to the latest version πŸš€ (#1840)

* chore(package): update sinon to version 8.0.0

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

e0d8171d70ff08e2d44be34e77dcff42e6b49f66 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Update prettier to the latest version πŸš€ (#1815)

24700599753d67b3408bf3dace5c5646b7202030 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
fix: make interceptors work in any order even when filteringScope (#1819)

Closes #1818

bd39dffe94680c1358ceeedc4a05d165f686f8e7 authored almost 5 years ago by Salman Mitha <[email protected]>
Update nyc to the latest version πŸš€ (#1841)

* chore(package): update nyc to version 15.0.0

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

e86a54259a346add73d71d12697047fc9a994718 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
minor typo in index.js comment (#1842)

937010ecad7ebd2ab4c6b8f5b3ff552da52695e1 authored almost 5 years ago by Leif Eriksen <[email protected]>
Update eslint-plugin-node to the latest version πŸš€ (#1843)

* chore(package): update eslint-plugin-node to version 11.0.0

* chore(package): update lockfi...

e7112e94c86de4a1694b3137763cbe05331f1159 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
chore(deps): bump handlebars from 4.1.2 to 4.5.3

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release note...

86bae9885ec1a3e221016f24fbc67517134e62b5 authored almost 5 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
refactor: remove chai as a prod dependency (#1826)

While I'm a big fan of Chai for expressive tests, it's basically
syntactic sugar over assertion...

ad0babdb23af8ba02a71ff3ce220d54c6f7a8f28 authored about 5 years ago by Matt R. Wilson <[email protected]>
refactor: Chai assert events, timers, & gzip. (#1816)

a22e7ad36d9a771f29574edf87ac1f21cfb99205 authored about 5 years ago by Matt R. Wilson <[email protected]>
refactor: chai assertions in test_request_overrider (#1770)

8f6fcf65184a2815abb62587818dc7a1078c77e0 authored about 5 years ago by Paul Melnikow <[email protected]>
Remove needle tests (#1781)

Replace with a test in the spirit of the original test, as the original behavior under test was ...

d70aeb13ce48e28d690e0944fb930c475b0247e1 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Mocha DSL in test_net_connect (#1810)

8114c5334748c550868b339e1db2aaa8f3f811a8 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Mocha DSL in test_ipv6 (#1812)

222d43c7cc30b853a693d8a365e98e2d5a3eca8f authored about 5 years ago by Paul Melnikow <[email protected]>
chore(dep): Greenkeeper/dtslint 1.0.2 (#1806)

970f7b822945ddc2502ee293b08ce189eaa7125a authored about 5 years ago by Matt R. Wilson <[email protected]>
Remove isomorphic-fetch tests (#1780)

Ref #1777

These were added in #399 #822.

The `reqheaders` test was needed to hit 100% cove...

524476eb429d03aea470081666b71a7d07b3faa2 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Some cleanup in test_intercept (#1804)

- Rewrite some mikealRequest tests using got
- Use some chai where things are changing anyway
...

8c2c9e9cd6700dcd22799b4d3a575d4c0f406eca authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: chai assertions in test_logging and test_net_connect (#1802)

5a4c27c03efd98eb07a73baf1cfe57df6c82c4b4 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: chai assertions in test_ipv6 (#1803)

78184d861f16187c2cb796215f8db1e7a1febf6f authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: chai assertions in test_nock_lifecycle (#1800)

cbde3a9460cfc95cd143a77e43d8b96878d5c8ed authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Replace several more uses of lodash with native, and related refactors (#1754)

This renames `Interceptor.matchAddress` to `Interceptor.matchOrigin` which I think better fits w...

3fbc69d74f6d23b33c2c6b144aa9fbf1d855cd18 authored about 5 years ago by Paul Melnikow <[email protected]>
docs: Mention strategy of testing common utility code (#1749)

e01a67de52c236926830c357d144f03e3bbe5ef6 authored about 5 years ago by Paul Melnikow <[email protected]>
feat(types): add type for Nock Back `currentMode` (#1794)

currentMode exists but isn't typed - https://github.com/nock/nock/blob/master/lib/back.js#L282
...

ba60fd2cc43a452e6928ad5405852883b68adf7c authored about 5 years ago by Nick Bartlett <[email protected]>
refactor: Modernize NOCK_OFF test and make SSL helper async (#1799)

e1597adfc3a813e998db1fd5e0157276b4cb4cd4 authored about 5 years ago by Paul Melnikow <[email protected]>
ci: Lint only once (#1793)

23145c1ededff548c4fd84381766f8b24d024846 authored about 5 years ago by Paul Melnikow <[email protected]>
test: Get all tests passing in Mocha too, and run in CI (#1787)

I noticed a handful of the tests would fail when I ran them in Mocha locally (though not in Tap)...

a06279ed9ef2f5910df889286ca0f799f8d930e4 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Mocha DSL for test_persist_optionally (#1797)

I rewrote most of the test titles, and removed one set of assertions that seemed to duplicate an...

6316d74ae15b54cd5c8a0e9839001f0d6a4174bc authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Mocha DSL for recorder tests, first pass (#1789)

3f74df0bf22986bcac305b285f7bf802cc0a3100 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Mocha DSL for test_query (#1791)

I've grouped these by how `query()` is invoked.

ebfe612a88c4e560e07b8ff05013c5b4c27ebd53 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: chai assertions in test_persist_optionally (#1790)

f9cbcd9ba8322c0be87b47d1e0b62acb72722c86 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Rewrite test_query using got, async, and chai (#1788)

cc6f74cd8290883b92eb6f570992c5cfe98a3d43 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Rewrite test with mock timer using got/async (#1785)

6aa42aaebe99d6d8c550838c2295bf1e23e5ead5 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Better document a couple tests / titles (#1786)

dc2cc2c701d354d5bcbf9c6aaa92f766eaf26606 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Rewrite superagent recorder tests using got (#1782)

* Test the missing behavior to restore 100% coverage

Ref #1776

ca29b6ae5a94a96b816b1e68f4da6039c90208ea authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Mocha DSL for test_redirects, test_remove_interceptor, test_repeating (#1784)

0c5c806085cf36c1fc31e27dd63ee791434fbfe3 authored about 5 years ago by Paul Melnikow <[email protected]>
Remove restify tests (#1779)

These came in on #180. If you look at the tree after this was merged https://github.com/nock/noc...

4f7082504346f4582ace709d7f88bf0da929758b authored about 5 years ago by Paul Melnikow <[email protected]>
Rewrite hyperquest integration test (#1778)

This test came in on 3e2372689533e6c54e0a16717488459264c20755 to fix #120. I've replaced it wit...

1a60bd032afa0fec99f9fabd17f0605db01a6ed7 authored about 5 years ago by Paul Melnikow <[email protected]>
refacator: chai asserrtions in test_redirects, test_remove_interceptor, test_repeating (#1774)

98390d2a32916ce11f6a408fcce4a0ae46f30be3 authored about 5 years ago by Paul Melnikow <[email protected]>
refactor: Rewrite mikealRequest recorder tests using got (#1783)

Ref #1776

42c2a845381190ca597993c4da276bc3a44f4334 authored about 5 years ago by Paul Melnikow <[email protected]>