File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,6 @@ import { assert, vi } from 'vitest'
1212import { BLOB_TOKEN } from './constants'
1313import { type FixtureTestContext } from './contexts'
1414
15- /**
16- * Uses next.js incremental cache to compute the same cache key for a URL that is automatically generated
17- * This is needed for mocking out fetch calls to test them
18- */
19- export const getFetchCacheKey = async ( url : string ) => {
20- const incCache = new IncrementalCache . IncrementalCache ( {
21- requestHeaders : { } ,
22- getPrerenderManifest : ( ) => ( { } ) ,
23- } as any )
24-
25- const key = await incCache . fetchCacheKey ( url )
26- return key
27- }
28-
2915/**
3016 * Generates a 24char deploy ID (this is validated in the blob storage so we cant use a uuidv4)
3117 * @returns
You can’t perform that action at this time.
0 commit comments