mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 00:41:05 +08:00
Add required globals to stories tests
This commit is contained in:
parent
2badf07fc8
commit
6d62f9f2ed
@ -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(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user