Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf1b5d9

Browse files
committed
test: fix deploy url regex
1 parent 97e7c44 commit bf1b5d9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/utils/create-e2e-fixture.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,7 @@ async function deploySite(
279279
await execaCommand(cmd, { cwd: siteDir, all: true }).pipeAll?.(join(siteDir, outputFile))
280280
const output = await readFile(join(siteDir, outputFile), 'utf-8')
281281

282-
const [url] =
283-
new RegExp(
284-
/https:\/\/app\.netlify\.com\/sites\/next-runtime-testing\/deploys\/^[0-9a-f]+/gm,
285-
).exec(output) || []
282+
const [url] = new RegExp(/next-runtime-testing\/deploys\/[0-9a-f]+/gm).exec(output) || []
286283
if (!url) {
287284
throw new Error('Could not extract the URL from the build logs')
288285
}

0 commit comments

Comments
 (0)