@@ -15,7 +15,7 @@ test('default', async () => {
1515 expect ( stderr ) . toBe ( '' )
1616
1717 const cachePath = ctx ! . cache . results . getCachePath ( )
18- const path = resolve ( project , 'node_modules/.vite/vitest/ results.json' )
18+ const path = resolve ( project , 'node_modules/.vite/results.json' )
1919 expect ( cachePath ) . toMatch ( path )
2020} )
2121
@@ -53,7 +53,7 @@ test('use cacheDir', async () => {
5353 expect ( stderr ) . toBe ( '' )
5454
5555 const cachePath = ctx ! . cache . results . getCachePath ( )
56- const path = resolve ( root , 'node_modules/.vite-custom/vitest/ results.json' )
56+ const path = resolve ( root , 'node_modules/.vite-custom/results.json' )
5757 expect ( cachePath ) . toMatch ( path )
5858} )
5959
@@ -77,7 +77,7 @@ describe('with optimizer enabled', () => {
7777 expect ( stderr ) . toBe ( '' )
7878
7979 const cachePath = ctx ! . cache . results . getCachePath ( )
80- const path = resolve ( project , 'node_modules/.vite/vitest/results.json' )
80+ const path = resolve ( root , 'node_modules/.vite/vitest/results.json' )
8181 expect ( cachePath ) . toBe ( path )
8282 } )
8383
@@ -117,7 +117,7 @@ describe('with optimizer enabled', () => {
117117 expect ( stderr ) . toBe ( '' )
118118
119119 const cachePath = ctx ! . cache . results . getCachePath ( )
120- const path = resolve ( root , 'node_modules/.vite-custom/vitest/ results.json' )
120+ const path = resolve ( root , 'node_modules/.vite-custom/results.json' )
121121 expect ( cachePath ) . toBe ( path )
122122 } )
123123} )
0 commit comments