Skip to content

Commit

Permalink
Add required globals to stories tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Oct 12, 2021
1 parent 2badf07 commit 6d62f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/api/src/tests/stories.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 6d62f9f

Please sign in to comment.