()
| 9 | const themePath = path.join(process.cwd(), 'test/_mocks/themes/valid'); |
| 10 | const themeSchema = fs.readFileSync(path.join(themePath, 'schema.json')).toString(); |
| 11 | function 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 | } |
| 25 | describe('Stencil Bundle', () => { |
| 26 | let bundle; |
| 27 | beforeEach(() => { |
no outgoing calls
no test coverage detected