Reference site / build (push) Canceled after 0s
Expose Rust Text View tokens and safely highlight signatures and JSON results. Add animated Interface and inline Run disclosures with a shared 10ms line cadence, typed argument inputs, and explicit execution. Update documentation and browser regressions for the new controls and explicit counter-value responses.
20 lines
794 B
TypeScript
20 lines
794 B
TypeScript
import { defineConfig } from '@playwright/test';
|
|
import preview from './playwright.config';
|
|
|
|
const port = process.env.SITE_TEST_PORT || '4323';
|
|
const base = process.env.SITE_BASE?.replace(/\/$/, '') || '';
|
|
const baseURL = `http://127.0.0.1:${port}${base}/`;
|
|
|
|
export default defineConfig({
|
|
...preview,
|
|
// Override rather than merge webServer: dev checks must not require dist/.
|
|
testMatch: ['wip-loading.spec.ts', 'fonts.spec.ts', 'protocol.spec.ts', 'protocol-api.spec.ts', 'playground.spec.ts', 'text-view.spec.ts', 'operation-form.spec.ts', 'json-view.spec.ts'],
|
|
use: { ...preview.use, baseURL },
|
|
webServer: {
|
|
command: `npm run dev -- --host 127.0.0.1 --port ${port} --ignore-lock`,
|
|
env: { SITE_BROWSER_TEST: '1' },
|
|
url: baseURL,
|
|
reuseExistingServer: false,
|
|
},
|
|
});
|