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
  • Loading branch information
shilman authored Jun 6, 2024
2 parents 194f713 + 94d1bbd commit 615d0d1
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 615d0d1

Please sign in to comment.