diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json index ffb4f5b92e..c3aecce474 100644 --- a/apps/laboratory/package.json +++ b/apps/laboratory/package.json @@ -6,7 +6,7 @@ "dev:laboratory": "next dev", "build:laboratory": "next build", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", - "playwright:start": "npm run dev:laboratory", + "playwright:start": "turbo run build; npm run dev:laboratory", "playwright:install": "npx playwright install --with-deps", "playwright:test": "npx playwright test", "playwright:debug": "npx playwright test --debug" diff --git a/apps/laboratory/tests/shared/constants/index.ts b/apps/laboratory/tests/shared/constants/index.ts index 4a9731c0d9..a54c6852ed 100644 --- a/apps/laboratory/tests/shared/constants/index.ts +++ b/apps/laboratory/tests/shared/constants/index.ts @@ -1 +1,2 @@ +// allow localhost export const LOCAL_LABS_URL = 'http://localhost:3000/library/wagmi/' diff --git a/dangerfile.ts b/dangerfile.ts index 4f25e3fd97..2e427e1017 100644 --- a/dangerfile.ts +++ b/dangerfile.ts @@ -279,7 +279,7 @@ async function checkDevelopmentConstants() { for (const f of updated_files) { const diff = await diffForFile(f) - if (diff?.added.includes('localhost:')) { + if (diff?.added.includes('localhost:') && !diff?.added.includes('// allow localhost')) { fail(`${f} uses localhost: which is likely a mistake`) } }