@@ -34,6 +34,9 @@ t.test('should pack current directory with no arguments', (t) => {
34
34
showProgress : ( ) => { } ,
35
35
clearProgress : ( ) => { } ,
36
36
} ,
37
+ fs : {
38
+ writeFile : ( file , data , cb ) => cb ( ) ,
39
+ } ,
37
40
} )
38
41
const npm = mockNpm ( {
39
42
config : {
@@ -69,6 +72,9 @@ t.test('should pack given directory', (t) => {
69
72
showProgress : ( ) => { } ,
70
73
clearProgress : ( ) => { } ,
71
74
} ,
75
+ fs : {
76
+ writeFile : ( file , data , cb ) => cb ( ) ,
77
+ } ,
72
78
} )
73
79
const npm = mockNpm ( {
74
80
config : {
@@ -104,6 +110,9 @@ t.test('should pack given directory for scoped package', (t) => {
104
110
showProgress : ( ) => { } ,
105
111
clearProgress : ( ) => { } ,
106
112
} ,
113
+ fs : {
114
+ writeFile : ( file , data , cb ) => cb ( ) ,
115
+ } ,
107
116
} )
108
117
const npm = mockNpm ( {
109
118
config : {
@@ -138,6 +147,9 @@ t.test('should log pack contents', (t) => {
138
147
showProgress : ( ) => { } ,
139
148
clearProgress : ( ) => { } ,
140
149
} ,
150
+ fs : {
151
+ writeFile : ( file , data , cb ) => cb ( ) ,
152
+ } ,
141
153
} )
142
154
const npm = mockNpm ( {
143
155
config : {
@@ -209,6 +221,9 @@ t.test('should log output as valid json', (t) => {
209
221
showProgress : ( ) => { } ,
210
222
clearProgress : ( ) => { } ,
211
223
} ,
224
+ fs : {
225
+ writeFile : ( file , data , cb ) => cb ( ) ,
226
+ } ,
212
227
} )
213
228
const npm = mockNpm ( {
214
229
config : {
@@ -259,6 +274,9 @@ t.test('invalid packument', (t) => {
259
274
showProgress : ( ) => { } ,
260
275
clearProgress : ( ) => { } ,
261
276
} ,
277
+ fs : {
278
+ writeFile : ( file , data , cb ) => cb ( ) ,
279
+ } ,
262
280
} )
263
281
const npm = mockNpm ( {
264
282
config : {
@@ -305,6 +323,9 @@ t.test('workspaces', (t) => {
305
323
showProgress : ( ) => { } ,
306
324
clearProgress : ( ) => { } ,
307
325
} ,
326
+ fs : {
327
+ writeFile : ( file , data , cb ) => cb ( ) ,
328
+ } ,
308
329
} )
309
330
const npm = mockNpm ( {
310
331
localPrefix : testDir ,
0 commit comments