Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test:input] Set up HTTP request mocking (#136)
* [site:test] Fix browser tests again expect.js doesn't play nicely with Babel, so it shouldn't be transformed by Babelify.^1 Note that the ignore option in Babelify is buggy ^2, so this might not work on your end. ^1 Automattic/expect.js#149 ^2 babel/babelify#265 * [test:input] Set up HTTP request mocking Set up proper HTTP request mocking by mocking exports with mock-require. Not possible in the browser, but it wasn't before, so this counts as an improvement. Previously done by nock, but this didn't work for requests made through sync-request, as that spawns a child process over which nock has no control. See #68 See 509d911 Close #134 * [test:input] Increase coverage of input plugins See #123 * [package] Add non-npm patch to dependencies See babel/babelify#267
- Loading branch information
Showing
21 changed files
with
17,138 additions
and
2,224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.