diff --git a/lib/mock.js b/lib/mock.js index 1f21837..1229982 100644 --- a/lib/mock.js +++ b/lib/mock.js @@ -25,13 +25,13 @@ const createMFS = () => { } } -const mock = async (generator, directory, {answers = {}} = {}) => { +const mock = async (generator, directory, {answers = {}, context} = {}) => { const mfs = createMFS() const noop = () => {} prompts.inject(answers) await create( {_: [generator, directory]}, - {mock: [{dest: mfs.dest}, {install: noop, gitInit: noop}]} + {mock: [{dest: mfs.dest}, {install: noop, gitInit: noop, ...context}]} ) return mfs }