From a083914649e405f01cfb5eb977939014f97e78cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 12 Apr 2022 17:23:42 +0200 Subject: [PATCH] Fix both sets of tests --- packages/cli/test/integration/shared/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/test/integration/shared/utils.ts b/packages/cli/test/integration/shared/utils.ts index 22174724c9..031ade55d2 100644 --- a/packages/cli/test/integration/shared/utils.ts +++ b/packages/cli/test/integration/shared/utils.ts @@ -158,6 +158,7 @@ export function createAgent( const agent = request.agent(app); if (options?.apiPath === undefined || options?.apiPath === 'internal') { + agent.use(prefix(REST_PATH_SEGMENT)); if (options?.auth && options?.user) { const { token } = issueJWT(options.user); agent.jar.setCookie(`${AUTH_COOKIE_NAME}=${token}`);