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

Function getThemeConfigStub

lib/stencil-bundle.spec.js:11–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const themePath = path.join(process.cwd(), 'test/_mocks/themes/valid');
10const themeSchema = fs.readFileSync(path.join(themePath, 'schema.json')).toString();
11function getThemeConfigStub() {
12 const rawConfig = {
13 meta: {
14 author_name: 'Emilio Esteves',
15 author_email: 'Emilio@work.net',
16 author_support_url: 'http://emilio.net',
17 },
18 };
19 return {
20 configExists: jest.fn().mockReturnValue(true),
21 getRawConfig: jest.fn().mockResolvedValue(rawConfig),
22 getSchema: jest.fn().mockResolvedValue(themeSchema),
23 };
24}
25describe('Stencil Bundle', () => {
26 let bundle;
27 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected