MCPcopy
hub / github.com/vitejs/vite / fetchPath

Function fetchPath

playground/assets/__tests__/assets.spec.ts:31–35  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

29const iconMatch = `/foo/bar/icon.png`
30
31const fetchPath = (p: string) => {
32 return fetch(path.posix.join(viteTestUrl, p), {
33 headers: { Accept: 'text/html,*/*' },
34 })
35}
36
37test('should have no 404s', () => {
38 browserLogs.forEach((msg) => {

Callers 1

assets.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected