@@ -216,7 +216,7 @@ t.test('missing file error when validating cache content', async t => {
216
216
const missingFileError = new Error ( 'ENOENT' )
217
217
missingFileError . code = 'ENOENT'
218
218
const mockVerify = getVerify ( t , {
219
- 'fs/promises ' : Object . assign ( { } , fs , {
219
+ 'fs-extra ' : Object . assign ( { } , fs , {
220
220
stat : async ( ) => {
221
221
throw missingFileError
222
222
} ,
@@ -238,7 +238,7 @@ t.test('missing file error when validating cache content', async t => {
238
238
239
239
t . test ( 'unknown error when validating content' , async t => {
240
240
const mockVerify = getVerify ( t , {
241
- 'fs/promises ' : Object . assign ( { } , fs , {
241
+ 'fs-extra ' : Object . assign ( { } , fs , {
242
242
stat : async ( ) => {
243
243
throw genericError
244
244
} ,
@@ -274,7 +274,7 @@ t.test('unknown error when rebuilding bucket', async t => {
274
274
// shouldFail controls the right time to mock the error
275
275
let shouldFail = false
276
276
const mockVerify = getVerify ( t , {
277
- 'fs/promises ' : Object . assign ( { } , fs , {
277
+ 'fs-extra ' : Object . assign ( { } , fs , {
278
278
stat : async ( path ) => {
279
279
if ( shouldFail ) {
280
280
throw genericError
0 commit comments