Add required globals to stories tests

This commit is contained in:
Tom Coleman 2021-10-13 09:04:03 +11:00
parent 2badf07fc8
commit 6d62f9f2ed

View File

@ -19,6 +19,8 @@ jest.mock('../lib/events');
jest.mock('global', () => ({
...jest.requireActual('global'),
fetch: jest.fn(() => ({ json: () => ({ v: 3, stories: mockStories() }) })),
FEATURES: { storyStoreV7: true },
CONFIG_TYPE: 'DEVELOPMENT',
}));
beforeEach(() => {