Files
supabase/e2e/docs/scripts/run-e2e-docs.ts
T
Miranda LimonczenkoandClaude Opus 5 d8972f29cb test(docs): run global elements in the full-site audit
`pnpm e2e:docs:all` selected the pages project only, so the audit skipped
everything outside the article. It now selects both projects and writes one
combined report. The per-project commands are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 10:41:37 -07:00

23 lines
728 B
JavaScript

#!/usr/bin/env node
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { runSuite } from '../../shared/run-suite.ts'
import { resolveAllDocsPages, resolveDocsScope } from '../utils/resolve-docs-scope.ts'
runSuite({
root: join(dirname(fileURLToPath(import.meta.url)), '..'),
label: 'docs',
devCommand: 'pnpm dev:docs',
pagePathsEnv: 'DOCS_E2E_PAGE_PATHS',
baseRefEnv: 'DOCS_E2E_BASE_REF',
defaultBaseUrl: 'http://localhost:3001',
project: 'pages',
allProjects: ['pages', 'global-elements'],
resolveScope: resolveDocsScope,
resolveAllPages: resolveAllDocsPages,
}).catch((error) => {
console.error(error instanceof Error ? error.message : error)
process.exit(1)
})