diff --git a/test/lib/pack.js b/test/lib/pack.js index ff7bef19d383a..ad5bbf3359182 100644 --- a/test/lib/pack.js +++ b/test/lib/pack.js @@ -34,6 +34,9 @@ t.test('should pack current directory with no arguments', (t) => { showProgress: () => {}, clearProgress: () => {}, }, + fs: { + writeFile: (file, data, cb) => cb(), + }, }) const npm = mockNpm({ config: { @@ -69,6 +72,9 @@ t.test('should pack given directory', (t) => { showProgress: () => {}, clearProgress: () => {}, }, + fs: { + writeFile: (file, data, cb) => cb(), + }, }) const npm = mockNpm({ config: { @@ -104,6 +110,9 @@ t.test('should pack given directory for scoped package', (t) => { showProgress: () => {}, clearProgress: () => {}, }, + fs: { + writeFile: (file, data, cb) => cb(), + }, }) const npm = mockNpm({ config: { @@ -138,6 +147,9 @@ t.test('should log pack contents', (t) => { showProgress: () => {}, clearProgress: () => {}, }, + fs: { + writeFile: (file, data, cb) => cb(), + }, }) const npm = mockNpm({ config: { @@ -209,6 +221,9 @@ t.test('should log output as valid json', (t) => { showProgress: () => {}, clearProgress: () => {}, }, + fs: { + writeFile: (file, data, cb) => cb(), + }, }) const npm = mockNpm({ config: { @@ -259,6 +274,9 @@ t.test('invalid packument', (t) => { showProgress: () => {}, clearProgress: () => {}, }, + fs: { + writeFile: (file, data, cb) => cb(), + }, }) const npm = mockNpm({ config: { @@ -305,6 +323,9 @@ t.test('workspaces', (t) => { showProgress: () => {}, clearProgress: () => {}, }, + fs: { + writeFile: (file, data, cb) => cb(), + }, }) const npm = mockNpm({ localPrefix: testDir,