Skip to content

Commit

Permalink
Merge pull request #28624 from storybookjs/shilman/csf-test-telemetry
Browse files Browse the repository at this point in the history
Telemetry: Add mount, beforeEach, moduleMock stats
  • Loading branch information
shilman authored Jul 19, 2024
2 parents 8da6907 + 4bc40ae commit 42f8d8f
Show file tree
Hide file tree
Showing 4 changed files with 410 additions and 4 deletions.
9 changes: 9 additions & 0 deletions code/core/src/core-server/utils/StoryIndexGenerator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ describe('StoryIndexGenerator', () => {

expect(stats).toMatchInlineSnapshot(`
{
"beforeEach": 0,
"loaders": 0,
"moduleMock": 0,
"mount": 0,
"play": 0,
"render": 0,
"storyFn": 0,
Expand Down Expand Up @@ -457,7 +460,10 @@ describe('StoryIndexGenerator', () => {

expect(stats).toMatchInlineSnapshot(`
{
"beforeEach": 1,
"loaders": 1,
"moduleMock": 0,
"mount": 1,
"play": 2,
"render": 1,
"storyFn": 1,
Expand Down Expand Up @@ -718,7 +724,10 @@ describe('StoryIndexGenerator', () => {

expect(stats).toMatchInlineSnapshot(`
{
"beforeEach": 1,
"loaders": 1,
"moduleMock": 0,
"mount": 1,
"play": 2,
"render": 1,
"storyFn": 1,
Expand Down
Loading

0 comments on commit 42f8d8f

Please sign in to comment.