- Create react-scan-ws-harness.html and reactScanWsHarness.tsx for testing React Scan performance monitoring - Initialize mock primary environment to prevent 'Unable to resolve primary environment' error - Seed WebSocket reconnect-waiting state for toast testing - Add console logging to debug connection state The harness sets up a test environment to observe whether React Scan can detect rerenders in the WebSocket reconnect toast countdown. The toast infrastructure requires additional WebSocket connection mocking to fully function. Co-authored-by: Julius Marminge <[email protected]>
14 lines
436 B
HTML
14 lines
436 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<script crossorigin="anonymous" src="https://unpkg.com/react-scan/dist/auto.global.js"></script>
|
|
<title>React Scan WebSocket Toast Harness</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/reactScanWsHarness.tsx"></script>
|
|
</body>
|
|
</html>
|