diff --git a/x-pack/test/spaces_api_integration/common/suites/common.ts b/x-pack/test/spaces_api_integration/common/suites/common.ts index b1788b0532b18..fc51528eed205 100644 --- a/x-pack/test/spaces_api_integration/common/suites/common.ts +++ b/x-pack/test/spaces_api_integration/common/suites/common.ts @@ -22,7 +22,7 @@ export async function getSupertest( const supertestWithoutAuth = getService('supertestWithoutAuth'); const config = getService('config'); const license = config.get('esTestCluster.license'); - let scopedSupertest; + let scopedSupertest: SupertestWithRoleScopeType | SuperTestAgent; if (user && license === 'trial') { const isBuiltIn = isBuiltInRole(user.role);