@@ -15,7 +15,7 @@ test('default', async () => {
15
15
expect ( stderr ) . toBe ( '' )
16
16
17
17
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' )
19
19
expect ( cachePath ) . toMatch ( path )
20
20
} )
21
21
@@ -53,7 +53,7 @@ test('use cacheDir', async () => {
53
53
expect ( stderr ) . toBe ( '' )
54
54
55
55
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' )
57
57
expect ( cachePath ) . toMatch ( path )
58
58
} )
59
59
@@ -77,7 +77,7 @@ describe('with optimizer enabled', () => {
77
77
expect ( stderr ) . toBe ( '' )
78
78
79
79
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' )
81
81
expect ( cachePath ) . toBe ( path )
82
82
} )
83
83
@@ -117,7 +117,7 @@ describe('with optimizer enabled', () => {
117
117
expect ( stderr ) . toBe ( '' )
118
118
119
119
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' )
121
121
expect ( cachePath ) . toBe ( path )
122
122
} )
123
123
} )
0 commit comments