MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / createStencilInitInstance

Function createStencilInitInstance

lib/stencil-init.spec.js:176–195  ·  view source on GitHub ↗
({
        inquirer,
        stencilConfigManager,
        serverConfig,
        logger,
    } = {})

Source from the content-addressed store, hash-verified

174 ),
175 });
176 const createStencilInitInstance = ({
177 inquirer,
178 stencilConfigManager,
179 serverConfig,
180 logger,
181 } = {}) => {
182 const passedArgs = {
183 inquirer: inquirer || getInquirerStub(),
184 stencilConfigManager: stencilConfigManager || getStencilConfigManagerStub(),
185 serverConfig: serverConfig || getServerConfigStub(),
186 logger: logger || getLoggerStub(),
187 nypm: getNypmStub(),
188 spinner: getSpinnnerStub(),
189 };
190 const instance = new StencilInit(passedArgs);
191 return {
192 passedArgs,
193 instance,
194 };
195 };
196 describe('constructor', () => {
197 it('should create an instance of StencilInit without options parameters passed', async () => {
198 const instance = new StencilInit({

Callers 1

Calls 6

getInquirerStubFunction · 0.85
getServerConfigStubFunction · 0.85
getNypmStubFunction · 0.85
getSpinnnerStubFunction · 0.85
getLoggerStubFunction · 0.70

Tested by

no test coverage detected