test(appsec): replace axios with fetch - #10076
Conversation
Fetch resolves when response headers arrive. The test helpers consume each response body before reporting completion, which preserves the existing request timing.
Overall package sizeSelf size: 8.58 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.4.0 | 127.33 kB | 447.04 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
✅ All CI checks and tests passed. Datadog automation helped this PR pass. 🎉 All green!🧪 All tests passed 🔄 Datadog retried 1 test - 1 passed on retry 🎯 Code Coverage (details) 🔗 Commit SHA: 75dcf6e | Docs | View more details | Give us feedback! |
Fetch resolves when response headers arrive. Each helper consumes the response body before assertions run, which preserves the existing request timing.
BenchmarksBenchmark execution time: 2026-08-31 15:42:55 Comparing candidate commit 75dcf6e in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2303 metrics, 7 unstable metrics.
|
Fetch resolves when response headers arrive. Each helper consumes the response body before the test proceeds, preserving the prior request completion timing.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10076 +/- ##
==========================================
- Coverage 98.61% 98.46% -0.15%
==========================================
Files 993 993
Lines 150186 150186
Branches 13129 12826 -303
==========================================
- Hits 148100 147885 -215
- Misses 2086 2301 +215 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fetch resolves when response headers arrive. The test helpers consume each response body before reporting completion, which preserves the existing request timing.