diff --git a/tests/api/fixtures.ts b/tests/api/fixtures.ts index 214d8be..1c9bde9 100644 --- a/tests/api/fixtures.ts +++ b/tests/api/fixtures.ts @@ -66,7 +66,7 @@ export const discoverTokenEndpoint = async ( }), }); - const matcher = indexPage.data.match(/window._env="([^"]+)"/); + const matcher = indexPage.data.match(/window._env\s*=\s*"([^"]+)"/); const serverConfig = matcher?.[1]; if (!serverConfig) { return null;