Skip to content

Commit 99b5962

Browse files
committed
fix: use :
1 parent 5c01cba commit 99b5962

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

modules/runtime/server/cache.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { CachedFetchResult } from '#shared/utils/fetch-cache-config'
2-
import { join } from 'node:path'
32

43
/**
54
* Test fixtures plugin for CI environments.
@@ -18,13 +17,13 @@ import { join } from 'node:path'
1817
const VERBOSE = process.env.NUXT_TEST_FIXTURES_VERBOSE === 'true'
1918

2019
const FIXTURE_PATHS = {
21-
packument: 'npm-registry/packuments',
22-
search: 'npm-registry/search',
23-
org: 'npm-registry/orgs',
24-
downloads: 'npm-api/downloads',
20+
packument: 'npm-registry:packuments',
21+
search: 'npm-registry:search',
22+
org: 'npm-registry:orgs',
23+
downloads: 'npm-api:downloads',
2524
user: 'users',
26-
esmHeaders: 'esm-sh/headers',
27-
esmTypes: 'esm-sh/types',
25+
esmHeaders: 'esm-sh:headers',
26+
esmTypes: 'esm-sh:types',
2827
} as const
2928

3029
type FixtureType = keyof typeof FIXTURE_PATHS
@@ -58,7 +57,7 @@ function getFixturePath(type: FixtureType, name: string): string {
5857
filename = `${name}.json`
5958
}
6059

61-
return join(dir, filename).replace(/\//g, ':')
60+
return `${dir}:${filename.replace(/\//g, ':')}`
6261
}
6362

6463
function getMockForUrl(url: string): MockResult | null {

0 commit comments

Comments
 (0)