11import 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'
1817const VERBOSE = process . env . NUXT_TEST_FIXTURES_VERBOSE === 'true'
1918
2019const 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
3029type 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
6463function getMockForUrl ( url : string ) : MockResult | null {
0 commit comments