react-native/flow-typed/npm
Rob Hogan da62721061 dev-middleware: refactor tests to use undici.request (#47675)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47675

Use `request` over `fetch` in `dev-middleware`'s tests.

This is required by the next diff in the stack to spoof the `Host` header for testing purposes, which isn't permitted by the `fetch` spec.

The return type is a bit different (eg `statusCode` vs `status`, no `ok` prop), but the modifications needed are pretty straightforward.

Changelog: [Internal]

Reviewed By: huntie

Differential Revision: D66005427

fbshipit-source-id: f311b0188d6d0ec220a037774fca78df5373163a
2024-11-18 15:14:02 -08:00
..
@isaacs
@react-native-community
@tsconfig
actual-request-url_v1.x.x.js
ansi-regex_v5.x.x.js
babel_v7.x.x.js
babel-traverse_v7.x.x.js update babel and fix tests accordingly (#46295) 2024-09-05 07:11:17 -07:00
babel-types_v7.x.x.js update babel and fix tests accordingly (#46295) 2024-09-05 07:11:17 -07:00
base64-js_v1.x.x.js
chalk_v4.x.x.js
chrome-launcher_v0.15.x.js fix Page visibility API in launched CDT (#43560) 2024-03-20 05:54:12 -07:00
chromium-edge-launcher_v0.2.x.js Migrate back to chromium-edge-launcher since Windows fix was merged (#43562) 2024-03-20 03:55:35 -07:00
commander_v12.x.x.js remove from build script (#44233) 2024-04-24 03:53:34 -07:00
connect_v3.x.x.js
data-uri-to-buffer_v6.x.x.js
debug_v2.x.x.js
execa_v5.x.x.js
glob_v7.x.x.js
listr2_v8.x.x.js listr → listr2 (#44716) 2024-05-30 07:40:36 -07:00
listr_v14.x.x.js add listr + rxjs flow types for OSS export 2024-04-26 03:10:00 -07:00
node-fetch_v2.x.x.js
open_v7.x.x.js
parseargs_v0.11.x.js
pretty-format_v29.x.x.js fix prettier error in CI (#46255) 2024-08-28 19:35:46 -07:00
promise_v8.x.x.js
react-dom_v17.x.x.js
react-test-renderer_v16.x.x.js Replace React$Element that will cause an error in the future 2024-08-05 18:42:05 -07:00
rxjs_v6.x.x.js fix rxjs flow types linting warnings (#44719) 2024-05-30 08:20:00 -07:00
selfsigned_v2.x.x.js
semver_v7.x.x.js flow semver 6.2 -> 7 type defintions (#45495) 2024-07-17 07:32:29 -07:00
serve-static_v1.x.x.js
shelljs_v0.x.x.js Deploy 0.231.0 to xplat (#43475) 2024-03-13 22:23:03 -07:00
signedsource_v1.x.x.js Use Flow in feature flags scripts (#42814) 2024-02-05 11:02:48 -08:00
stacktrace-parser_v0.1.x.js
typescript_v5.x.x.js
undici_v5.x.x.js dev-middleware: refactor tests to use undici.request (#47675) 2024-11-18 15:14:02 -08:00
wait-for-expect_v3.x.x.js
ws_v7.x.x.js
yargs_v17.x.x.js add yargs#usage typing (#46983) 2024-10-11 11:27:09 -07:00