Skip to content

Commit a6241f5

Browse files
shilmanstorybook-bot
authored andcommitted
Merge pull request #28091 from storybookjs/kasper/only-log-spies-with-names
Addon-actions: Only log spies with names (cherry picked from commit 615d0d1)
1 parent e05cb96 commit a6241f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/addons/actions/src/loaders.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const logActionsWhenMockCalled: LoaderFunction = (context) => {
2020
const onMockCall = global.__STORYBOOK_TEST_ON_MOCK_CALL__ as typeof onMockCallType;
2121
onMockCall((mock, args) => {
2222
const name = mock.getMockName();
23+
if (name === 'spy') return;
2324

2425
// TODO: Make this a configurable API in 8.2
2526
if (

0 commit comments

Comments
 (0)