Skip to content

Commit

Permalink
refactor(test): resolve ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Röder committed Mar 16, 2024
1 parent db4867c commit 5dc3d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/lib/test/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ const resetAllMocksLoader: LoaderFunction = ({ parameters }) => {
}
};

// @ts-expect-error We are using this as a default Storybook loader, when the test package is used. This avoids the need for optional peer dependency workarounds.
// We are using this as a default Storybook loader, when the test package is used. This avoids the need for optional peer dependency workarounds.
// eslint-disable-next-line no-underscore-dangle
global.__STORYBOOK_TEST_LOADERS__ = [resetAllMocksLoader];
(global as any).__STORYBOOK_TEST_LOADERS__ = [resetAllMocksLoader];

0 comments on commit 5dc3d92

Please sign in to comment.