Skip to content

Commit

Permalink
Merge pull request #28091 from storybookjs/kasper/only-log-spies-with…
Browse files Browse the repository at this point in the history
…-names

Addon-actions: Only log spies with names
(cherry picked from commit 615d0d1)
  • Loading branch information
shilman authored and storybook-bot committed Jun 10, 2024
1 parent e05cb96 commit ea5d53e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/addons/actions/src/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const logActionsWhenMockCalled: LoaderFunction = (context) => {
const onMockCall = global.__STORYBOOK_TEST_ON_MOCK_CALL__ as typeof onMockCallType;
onMockCall((mock, args) => {
const name = mock.getMockName();
if (name === 'spy') return;

// TODO: Make this a configurable API in 8.2
if (
Expand Down

0 comments on commit ea5d53e

Please sign in to comment.