MCPcopy Create free account
hub / github.com/TanStack/cli / optimizePageForFastE2E

Function optimizePageForFastE2E

packages/cli/tests-e2e/helpers.ts:313–326  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

311 route.abort('blockedbyclient')
312
313export async function optimizePageForFastE2E(page: Page) {
314 const blockAssets = envBoolean('E2E_BLOCK_NON_ESSENTIAL', true)
315 if (!blockAssets) {
316 return
317 }
318
319 await page.route(IMAGE_GLOB, abortRoute)
320 await page.route(FONT_GLOB, abortRoute)
321 await page.route(MEDIA_GLOB, abortRoute)
322
323 if (envBoolean('E2E_BLOCK_CSS', false)) {
324 await page.route(CSS_GLOB, abortRoute)
325 }
326}
327
328export async function createAppFixture(
329 options: CreateAppFixtureOptions,

Calls 1

envBooleanFunction · 0.85

Tested by

no test coverage detected