We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8913569 commit d1075a7Copy full SHA for d1075a7
tests/utils/helpers.ts
@@ -12,20 +12,6 @@ import { assert, vi } from 'vitest'
12
import { BLOB_TOKEN } from './constants'
13
import { type FixtureTestContext } from './contexts'
14
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
29
/**
30
* Generates a 24char deploy ID (this is validated in the blob storage so we cant use a uuidv4)
31
* @returns
0 commit comments