expectUrlNotPrefetched() — astro Function Reference
Architecture documentation for the expectUrlNotPrefetched() function in prefetch.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 9274b215_fe17_9fa8_796d_2634543a6c33["expectUrlNotPrefetched()"] 1c683310_85be_7904_6ff5_67c2a35b7c0b["prefetch.test.js"] 9274b215_fe17_9fa8_796d_2634543a6c33 -->|defined in| 1c683310_85be_7904_6ff5_67c2a35b7c0b style 9274b215_fe17_9fa8_796d_2634543a6c33 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/prefetch.test.js lines 54–57
async function expectUrlNotPrefetched(url, page) {
await expect(page.locator(`link[rel="prefetch"][href$="${url}"]`)).not.toBeAttached();
expect(reqUrls).not.toContainEqual(url);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does expectUrlNotPrefetched() do?
expectUrlNotPrefetched() is a function in the astro codebase, defined in packages/astro/e2e/prefetch.test.js.
Where is expectUrlNotPrefetched() defined?
expectUrlNotPrefetched() is defined in packages/astro/e2e/prefetch.test.js at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free