mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 03:41:06 +08:00
fix types
This commit is contained in:
parent
07867c8d4e
commit
a972797db5
@ -87,7 +87,7 @@ beforeEach(() => {
|
|||||||
provider.serverChannel = mockChannel();
|
provider.serverChannel = mockChannel();
|
||||||
mockGetEntries.mockReset().mockReturnValue(mockEntries);
|
mockGetEntries.mockReset().mockReturnValue(mockEntries);
|
||||||
|
|
||||||
(global.fetch as ReturnType<typeof jest.fn<typeof global.fetch>>).mockReset().mockReturnValue(
|
(global.fetch as jest.Mock<ReturnType<typeof global.fetch>>).mockReset().mockReturnValue(
|
||||||
Promise.resolve({
|
Promise.resolve({
|
||||||
status: 200,
|
status: 200,
|
||||||
ok: true,
|
ok: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user