angular/packages/common/http/test
Doug Parker 1ef503e18e test(http): disable XSRF and mock location in HttpClient tests to avoid Domino failures and state leakage
The `HttpClient` tests in `client_spec.ts` were failing intermittently in Node/Domino environment because `MockPlatformLocation` defaults to `http://_empty_/`. This valid URL satisfied the URL parser in `xsrfInterceptorFn`, causing it to proceed to cookie extraction which throws `NotYetImplemented` in Domino.

To fix this:
1. Disabled XSRF protection in `client_spec.ts` using `withNoXsrfProtection()`, as these tests are not for XSRF.
2. Provided `ɵprovideFakePlatformNavigation` to remove state leakage effects and ensure consistency.
2026-04-06 11:05:53 -07:00
..
BUILD.bazel test(http): remove zone-based testing utilities 2026-02-10 07:45:00 -08:00
client_spec.ts test(http): disable XSRF and mock location in HttpClient tests to avoid Domino failures and state leakage 2026-04-06 11:05:53 -07:00
context_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
fetch_spec.ts feat(http): Use FetchBackend as default for the HttpBackend implementation 2026-02-26 13:47:02 -08:00
headers_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
jsonp_mock.ts refactor(core): remove TODOs referencing #24571 (#60648) 2025-03-31 20:24:29 +00:00
jsonp_spec.ts test(http): refactors HTTP client tests to use TestBed and providers 2026-03-03 09:12:36 -08:00
module_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
params_spec.ts refactor(common): convert scripts within packages/common to relative imports (#60623) 2025-04-01 15:58:51 +00:00
provider_spec.ts refactor(http): Make Fetch API the default in HttpBackend 2026-03-23 11:20:39 -07:00
request_spec.ts feat(http): add support for fetch referrerPolicy option in HttpClient (#64116) 2025-10-07 20:45:34 -04:00
resource_spec.ts feat(core): add special return statuses for resource params 2026-03-02 08:47:14 -08:00
response_spec.ts feat(http): Add reponseType property to HttpResponse and HttpErrorResponse (#63043) 2025-08-28 08:34:56 -07:00
transfer_cache_spec.ts Revert "fix(http): correctly cache blob responses in transfer cache (#67002)" 2026-03-04 09:19:10 -08:00
xhr_mock.ts feat(http): Add timeout option to HTTP requests (#57194) 2025-06-27 09:56:25 +00:00
xhr_spec.ts refactor(http): add hooks for propagating traces across XHR callbacks. 2025-10-28 15:08:57 +01:00
xsrf_spec.ts test(http): refactors HTTP client tests to use TestBed and providers 2026-03-03 09:12:36 -08:00