-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
CSF: Add Storybook test syntax (Storybook v9) #32391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
159 commits
Select commit
Hold shift + click to select a range
81e9c77
wip prototype for test fn plugin
yannbf 1803fb0
continue prototype
yannbf 78abf69
fixes
yannbf c2ecdb5
do not apply loader/plugin to svelte files
yannbf af298b5
no-op on non csf-factories
yannbf bf57669
dont throw on global settings write error, dont run in CI
JReinhold c458370
add more resilient utility for boolean environment variables
JReinhold 5dc7ef7
Merge branch 'next' into yann/test-fn-prototype
yannbf 1086746
Handle type 'test' in Storybook UI
yannbf f455ffa
workaround
yannbf ea74f25
Merge branch 'next' into jeppe/fix-global-settings-readonly
shilman 502e7f9
Merge branch 'next' into jeppe/fix-global-settings-readonly
yannbf e642f4e
Refactor: Update isCI usage to function calls across multiple files
yannbf 8c980e7
Merge branch 'next' into jeppe/fix-global-settings-readonly
yannbf 8733611
Comment out userSince test in event-log-checker for discussion on CI …
yannbf 9e0c214
bundle in utilities
yannbf c5354dc
Refactor: Update imports in initiate.ts to use centralized utilities
yannbf b3fa273
Write changelog for 9.2.0-alpha.0 [skip ci]
storybook-bot b60704c
Merge pull request #32165 from storybookjs/version-non-patch-from-9.1.0
yannbf 4dad3f9
Bump version from "9.1.0" to "9.2.0-alpha.0" [skip ci]
storybook-bot 29048f6
Docs: Further improvements
kylegach e4cd834
More details about project roots
kylegach 8483d0b
Fixes
kylegach c8088d9
Merge branch 'next' into docs-automocking-2
kylegach f6868f0
Spell out `process.cwd` as root
kylegach 09e097b
Telemetry: Send index stats on dev exit
shilman a08989b
Fix test install in agentic environments
shilman ebc6ced
Merge branch 'next' into shilman/add-dev-cancel-event
shilman c5d386f
Merge pull request #32168 from storybookjs/shilman/add-dev-cancel-event
shilman 53e5d1d
Introduce a __STORYBOOK_UNSAFE_TOCBOT__ option from addon docs
yannbf 0510d85
lazy load lazy-universal-dotenv
yannbf 247db2d
Merge pull request #32176 from storybookjs/yann/expose-tocbot-instance
shilman d87db5c
Merge pull request #31785 from storybookjs/jeppe/fix-global-settings-…
yannbf 4988688
Write changelog for 9.2.0-alpha.1 [skip ci]
storybook-bot 83311e3
Merge pull request #32174 from storybookjs/version-non-patch-from-9.2…
yannbf f148fae
Move troubleshooting to bottom
kylegach 04e1436
Bump version from "9.2.0-alpha.0" to "9.2.0-alpha.1" [skip ci]
storybook-bot 84ea113
Merge pull request #32166 from storybookjs/docs-automocking-2
kylegach 32fbe3a
Merge branch 'next-release' into next
storybook-bot 53046fe
Onboarding: Tweak referral wording in survey
shilman 74aa094
Merge pull request #32185 from storybookjs/shilman/tweak-survey
yannbf d92b88a
Update CHANGELOG.md for v9.1.1 [skip ci]
storybook-bot ff40d89
Merge branch 'next' into yann/test-fn-prototype
yannbf bc01f93
add vitest integration support
yannbf 5f9bb80
Make vitest integration work
yannbf 3c00cc8
more experiments
yannbf cde0b32
cleanup
yannbf 6cc74e2
cleanup
yannbf 9d544a6
prepare for index type test
yannbf bef2d9e
update tests
yannbf 87446ca
update types
yannbf 110822c
update tests
yannbf b803204
support function references
yannbf 5dce7ad
add test render phase
yannbf 08b3fb2
prepare for the UI work
yannbf 40df0de
updates
yannbf 8acca71
fix
yannbf 67643a8
fix
yannbf d7dc33d
fix
yannbf 991b3b5
fixes
yannbf beb32bf
fix
yannbf 4e90611
Fix types
kasperpeulen 9719ea6
Refactor test prototype
kasperpeulen 82b84e4
Improve a bit
kasperpeulen eca1ace
fix unit tests
yannbf ee34e40
fix chromatic failures
yannbf 6ab99d4
Fix override in portable stories
kasperpeulen 024cde6
Merge remote-tracking branch 'origin/kasper/refactor-test-prototype' …
kasperpeulen 7def7d9
add fixes for portable stories and prepareStory
yannbf 3ab5db3
Improved doTest type
kasperpeulen 8e74582
Improve test execution in StoryRender
kasperpeulen df6dce7
Merge pull request #32314 from storybookjs/kasper/refactor-test-proto…
yannbf ad68ec3
Next.js: Fix version mismatch error in Webpack
yannbf 91f0fc4
bring back all tests
yannbf 864ed55
update tests
yannbf d14ea0e
support story tests in single test run
yannbf 32f7796
update comments
yannbf 50fc0b7
fix vitest regex
yannbf 512c1e6
Refactor to see stories as tests
kasperpeulen 0358dcc
Remove some todos
kasperpeulen 620663c
Rename
kasperpeulen 91a0149
Fix
kasperpeulen 68603a9
fix
yannbf a444184
fix tests and revamp test filtering
yannbf c47c4fa
Merge pull request #32328 from storybookjs/kasper/see-tests-as-stories
yannbf 7b564ea
Add TestNode for sidebar
ghengeveld 52a3cf3
implement test metrics
yannbf 5c6ef7f
Some cleanup
ghengeveld d509fc3
Fix types, avoid any
ghengeveld 05e57e6
Add missing deps
ghengeveld 9c78432
Render test entries in sidebar and add-in wrapper entries for stories…
ghengeveld 700ec5b
Add story with play function
ghengeveld cbbd7be
Ensure wrapper gets proper children and tags
ghengeveld 5fe23d4
Fix filtering by test-fn tag
ghengeveld 05a264c
fix search item icon for story tests
yannbf f6c090e
add more stories
yannbf ebe497a
Merge pull request #32335 from storybookjs/yann/test-metrics
yannbf e335dc4
Add subtype property to distinguish tests from stories
ghengeveld 6fa8664
Add autodocs to test-fn stories for dev/test/debug
ghengeveld 8dee332
Refactor story index transformation logic for improved filtering and …
ghengeveld d9bf94a
Fix sortStory
ghengeveld b6c82bc
fix tests
yannbf 8e06a46
fix build/type issues
yannbf f70fbda
fix unit tests, write E2E
yannbf eefc73e
fix indexing of tests
yannbf 5640b6e
Merge pull request #32337 from storybookjs/sidebar-test-type
yannbf 5344b3f
fix snapshot
yannbf c166dc4
fix check
yannbf 07d688d
Update tags filter UI
ghengeveld cf297c8
Enhance sidebar to support test entries and improve story handling
ghengeveld a95c291
Add default selection for tags in sidebar and update TagsFilter compo…
yannbf b6fbeda
add jsdocs
yannbf a632036
Remove console.log
ghengeveld 0b3d490
Enhance Button story rendering and improve sidebar node expansion logic
ghengeveld 9f16a26
Update VitestManager to use correct RegExp
ghengeveld 5705bb5
update to use defaultSelection instead
yannbf 24253d8
small rename
yannbf 8d18419
cleanup
yannbf 15e965e
Merge pull request #32373 from storybookjs/yann/add-tags-preset-to-main
yannbf 4831e99
fix build
yannbf 3e8c306
Implement indeterminate state for unrepresentable combination of defa…
ghengeveld 1a4ee93
disable save from controls in story tests
yannbf cd66148
fix build
yannbf bab3780
Add story for non-initial state
ghengeveld f570532
Fix filtering out stories which have tests
ghengeveld 7a03431
Fix default invert toggle setting
ghengeveld 07e99ae
Refactor CsfFile to support test tags and update related methods for …
yannbf b6c6e94
Make it possible to distinguish tests from stories in StoryStore.extr…
ghengeveld 639042c
small refactor
yannbf 3fa6097
Merge pull request #32385 from storybookjs/yann/fix-test-tags-extraction
yannbf 9b7fa17
fix tests
yannbf d61fba2
Merge branch 'yann/test-fn-prototype' into update-storystore-extract
yannbf 319ace2
Merge pull request #32388 from storybookjs/update-storystore-extract
yannbf 48cb2d9
Merge branch 'latest-release' into feature/test-syntax-in-csf
yannbf 478e4f1
undo some merge changes
yannbf 7aa48c2
Fix regression and failing E2E tests
yannbf f5e829d
fix test-runner tests
yannbf 0b21aff
fix unit tests
yannbf f793686
Fix focused test run in Storybook sidebar
yannbf 2d64830
Revert "Fix focused test run in Storybook sidebar"
yannbf 86db945
Fix focused test run in Storybook sidebar
yannbf 07beaea
remove log
yannbf c22aa61
use double spaces instead
yannbf f0cfe33
only use double space in parent stories
yannbf 3113762
fix tests
yannbf c2aedef
Merge pull request #32403 from storybookjs/yann/fix-focused-test-runs
yannbf d98408f
Implement include/exclude toggle for each tag to replace global inver…
ghengeveld 54ecd3a
Enhance codemod tests and support for non-conventional story formats …
yannbf 41c83af
Merge pull request #32414 from storybookjs/yann/fix-csf-factories-cod…
yannbf c652477
Update tags filter UI and fix filter function logic
ghengeveld b52b74a
Merge branch 'feature/test-syntax-in-csf' into tags-filter-exclude
yannbf 4c348d3
Copy the default included/excluded sets to avoid accidental mutation
ghengeveld d28127c
Rename defaultSelection to defaultFilterSelection for clarity
ghengeveld 8a65895
Remove some built-in tags that will no longer exist
ghengeveld 7985f43
Revert check icon when not hovering
ghengeveld 67dfbfb
Delay tooltips
ghengeveld 00e53ca
Merge pull request #32417 from storybookjs/tags-filter-exclude
yannbf 8b9cc24
fix children calculation
yannbf 87ddc71
fix children calculation pt. 2
yannbf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: The logic for detecting parent/child relationships assumes
story.parentproperty exists but this property isn't defined in theStoryIndexEntrytype imports