MCPcopy
hub / github.com/withastro/astro / rewrite-handler.test.ts

File rewrite-handler.test.ts

packages/astro/test/units/fetch/rewrite-handler.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import assert from 'node:assert/strict';
2import { describe, it } from 'node:test';
3import { FetchState } from '../../../dist/core/fetch/fetch-state.js';
4import { Rewrites, applyRewriteToState } from '../../../dist/core/rewrites/handler.js';

Callers

nothing calls this directly

Calls 15

staticPartFunction · 0.90
dynamicPartFunction · 0.90
createRouteDataFunction · 0.90
createTestAppFunction · 0.90
createPageFunction · 0.90
createStateFunction · 0.85
makeTryRewriteResultFunction · 0.85
applyRewriteToStateFunction · 0.85
createFetchStateFunction · 0.85
textMethod · 0.80
createAstroMethod · 0.65
createComponentFunction · 0.50

Tested by

no test coverage detected