We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fbf916 commit 98de6faCopy full SHA for 98de6fa
examples/benchmark-react/bench/runner.ts
@@ -70,7 +70,8 @@ async function runScenario(
70
await harness.waitFor({ state: 'attached' });
71
72
const bench = await page.evaluateHandle('window.__BENCH__');
73
- if (!bench) throw new Error('window.__BENCH__ not found');
+ if (await bench.evaluate(b => b == null))
74
+ throw new Error('window.__BENCH__ not found');
75
76
const isMemory =
77
scenario.action === 'mountUnmountCycle' &&
0 commit comments