Update supertest and superagent to latest version (#183587)

## Summary

Related to https://github.com/elastic/kibana/issues/7104

Update supertest, superagent, and the corresponding type package, to
their latest version.

(of course, types had some signature changes and we're massively using
supertest in all our FTR suites so the whole Kibana multiverse has to
review it)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Pierre Gayvallet 2024-05-17 13:23:21 +02:00 committed by GitHub
parent 4b7d014582
commit 148eeec0fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
153 changed files with 439 additions and 431 deletions

View file

@ -28,7 +28,7 @@ describe('BasePathProxyServer', () => {
let logger: TestLog;
let config: IHttpConfig;
let basePath: string;
let proxySupertest: supertest.SuperTest<supertest.Test>;
let proxySupertest: supertest.Agent;
beforeEach(async () => {
logger = new TestLog();
@ -330,7 +330,7 @@ describe('BasePathProxyServer', () => {
describe('shouldRedirect', () => {
let proxyServerWithoutShouldRedirect: BasePathProxyServer;
let proxyWithoutShouldRedirectSupertest: supertest.SuperTest<supertest.Test>;
let proxyWithoutShouldRedirectSupertest: supertest.Agent;
beforeEach(async () => {
// setup and start a proxy server which does not use "shouldRedirectFromOldBasePath"
@ -373,7 +373,7 @@ describe('BasePathProxyServer', () => {
describe('constructor option for sending in a custom basePath', () => {
let proxyServerWithFooBasePath: BasePathProxyServer;
let proxyWithFooBasePath: supertest.SuperTest<supertest.Test>;
let proxyWithFooBasePath: supertest.Agent;
beforeEach(async () => {
// setup and start a proxy server which uses a basePath of "foo"