From d1075a7e825596ecbd8147e1db2e9b75d9658903 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Mon, 24 Jun 2024 11:42:11 +0200 Subject: [PATCH] chore: remove dead code --- tests/utils/helpers.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/utils/helpers.ts b/tests/utils/helpers.ts index 6664bdd05b..93c6c78678 100644 --- a/tests/utils/helpers.ts +++ b/tests/utils/helpers.ts @@ -12,20 +12,6 @@ import { assert, vi } from 'vitest' import { BLOB_TOKEN } from './constants' import { type FixtureTestContext } from './contexts' -/** - * Uses next.js incremental cache to compute the same cache key for a URL that is automatically generated - * This is needed for mocking out fetch calls to test them - */ -export const getFetchCacheKey = async (url: string) => { - const incCache = new IncrementalCache.IncrementalCache({ - requestHeaders: {}, - getPrerenderManifest: () => ({}), - } as any) - - const key = await incCache.fetchCacheKey(url) - return key -} - /** * Generates a 24char deploy ID (this is validated in the blob storage so we cant use a uuidv4) * @returns