Files
insights-js/packages/browser/playwright.config.compat.ts
zeekay e43ab1afe7 chore: rename all PostHog references to Insights/Hanzo
Bulk rename across 989 files:
- Package names: posthog-js → @hanzo/insights, posthog-node → @hanzo/insights-node, etc.
- Repository URLs: posthog/posthog-js → hanzoai/insights-js
- Brand names: PostHog → Insights
- File renames: 259 reference JSON files, source files, workflow files
- Directory rename: eslint-plugin-posthog-js → eslint-plugin-insights

Remaining: 8 refs to @posthog/rrweb-* (real npm deps, need fork+publish)
2026-03-06 01:41:12 -08:00

42 lines
1.3 KiB
TypeScript

import { defineConfig, devices } from '@playwright/test'
/**
* Backward compatibility tests.
*
* These tests validate that newly built lazy-loaded extensions (web-vitals, surveys, etc.)
* work correctly with the currently published NPM version of array.js (insights core).
*
* This catches breaking changes where a new extension would fail when loaded by
* users who have an older cached version of the core library.
*/
export default defineConfig({
globalSetup: './playwright/global-setup-compat.ts',
testDir: './playwright/mocked',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 2 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:2345',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium-compat',
use: {
...devices['Desktop Chrome'],
staticOverrides: {
'array.js': 'array.npm-latest.js',
'array.full.js': 'array.full.npm-latest.js',
},
},
},
],
webServer: {
command: 'pnpm run playwright-webserver',
url: 'http://localhost:2345',
reuseExistingServer: !process.env.CI,
},
})