Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
aacc4ac
migrate some things by hand
ndelangen Sep 14, 2023
93db551
more manual migrations
ndelangen Sep 14, 2023
fd0386f
making progress on migrating to vitest
ndelangen Sep 14, 2023
1dfe687
migrate all jest references to vitest
yannbf Sep 14, 2023
799b7c7
update snapshots
yannbf Sep 14, 2023
d91a91e
more fixes
yannbf Sep 14, 2023
604a442
progress on fixes
ndelangen Sep 14, 2023
4eace09
Merge branch 'norbert/vitest-for-monorepo' of github.com:storybookjs/…
ndelangen Sep 14, 2023
c9f36de
fixing tests in scripts
ndelangen Sep 14, 2023
90d5409
remove jest-specific-snapshot and update snapshots
yannbf Sep 14, 2023
d1966b1
fix imports
yannbf Sep 14, 2023
cb9ffb1
more test fixes
yannbf Sep 15, 2023
c43385b
fix more tests
yannbf Sep 15, 2023
6c272c9
more fixes
yannbf Sep 15, 2023
6250ef3
fix codemods test
ndelangen Sep 15, 2023
ab77c3e
improve test
ndelangen Sep 15, 2023
2ae51af
fix a test
ndelangen Sep 15, 2023
70beaf7
remove jest-os-detection
yannbf Sep 18, 2023
5d73a0a
Merge branch 'next' into norbert/vitest-for-monorepo
yannbf Oct 9, 2023
9a2f8f6
upgrade to vitest 1.0.0-beta.4 and fix many more tests
yannbf Oct 9, 2023
b76d42c
Merge branch 'next' into norbert/vitest-for-monorepo
yannbf Oct 9, 2023
75e7d00
Add/configure jest-dom
IanVS Oct 10, 2023
db243e1
Cleanup after rendering
IanVS Oct 10, 2023
ccff556
Only use vite 4
IanVS Oct 10, 2023
5fe8e5b
Get renderers/vue tests passing
IanVS Oct 10, 2023
2ca45f5
Get renderers/vue3 tests passing
IanVS Oct 10, 2023
ca0394d
Get renderers/svelte tests passing
IanVS Oct 10, 2023
00b0f0e
Fix cli helpers test
IanVS Oct 10, 2023
238f254
Recreate throwMessage helpers from jest into vitest setup
IanVS Oct 10, 2023
5652c32
Fix type error
IanVS Oct 10, 2023
8abefdb
Avoid empty mockImplementation
IanVS Oct 10, 2023
af7e7e4
A bit cleaner way to deal with fsExtra.__setMockFiles
IanVS Oct 10, 2023
a53cf8d
Avoid console warning error
IanVS Oct 10, 2023
7634e80
Fix lib/codemod test
IanVS Oct 10, 2023
397cafe
Use `import()` for presets instead of `interopRequireDefault`
IanVS Oct 10, 2023
f70813d
Get lib/core-common tests passing
IanVS Oct 10, 2023
fd15923
Get lib/theming tests passing
IanVS Oct 10, 2023
d2f4af1
Update snapshot format
IanVS Oct 11, 2023
6d35099
Avoid infinite loop in find-up
IanVS Oct 11, 2023
375fe3d
Be consistent about named vs default imports
IanVS Oct 11, 2023
2373a09
Use default actual import from debounce
IanVS Oct 11, 2023
29d3e7c
Use vi.waitFor() instead of timing hacks
IanVS Oct 11, 2023
ae00f52
[HACK] add import condition for @storybook/preview/globals
IanVS Oct 11, 2023
3c2479f
Use arg of mock factory to clean up types
IanVS Oct 11, 2023
4ddebe8
Use vi.mocked() instead of casting to Mock
IanVS Oct 11, 2023
1da8527
Remove some unused code
IanVS Oct 11, 2023
3f5e0f3
fix StoryIndexGenerator.test
JReinhold Oct 11, 2023
aab2798
fix StoryIndexGenerator.deprecated.test
JReinhold Oct 11, 2023
1e8adfd
add ignore
ndelangen Nov 4, 2023
99ad313
Merge branch 'release-8-0' into norbert/vitest-for-monorepo
ndelangen Nov 4, 2023
360d02d
ts fixes
ndelangen Nov 4, 2023
bfe4397
upgrade @testing-library/jest-dom
ndelangen Nov 4, 2023
458227a
update snapshots && fixes
ndelangen Nov 4, 2023
4572eeb
fixes
ndelangen Nov 4, 2023
e65f677
upgrade vitest to beta.3 & fixes
ndelangen Nov 7, 2023
1c9050a
fix linting
ndelangen Nov 8, 2023
44944d4
fix check
ndelangen Nov 8, 2023
a5d5e8e
fix check of scripts
ndelangen Nov 8, 2023
e3de0b5
remove invalid flags
ndelangen Nov 8, 2023
3a2986e
remove --ci flags
ndelangen Nov 8, 2023
6f53f7a
add @vitest/coverage-v8 - npm
ndelangen Nov 8, 2023
9adfc24
add package
ndelangen Nov 9, 2023
0452176
remove --runInBand test flag
JReinhold Nov 9, 2023
b64d62b
set vi globals to silent emotion warnings
JReinhold Nov 9, 2023
376029f
spike removing react as a peer dependency from addon-docs
JReinhold Nov 16, 2023
5317302
Merge branch 'next' of github.com:storybookjs/storybook into addon-do…
JReinhold Nov 16, 2023
7f6c1cc
update lockfile
JReinhold Nov 17, 2023
c85a698
remove unused join
JReinhold Nov 17, 2023
012e909
fix
JReinhold Nov 17, 2023
8e533c2
Merge remote-tracking branch 'origin/next' into norbert/vitest-for-mo…
IanVS Nov 20, 2023
3710197
Update snapshot
IanVS Nov 20, 2023
39f3e42
Update globals
IanVS Nov 20, 2023
ee0953d
fix more tests
yannbf Nov 24, 2023
bd40b6e
Merge branch 'release-8-0' into refactor/ea45781-yadong-jsx-decorator
ndelangen Nov 28, 2023
360ba46
Merge remote-tracking branch 'origin/next' into norbert/vitest-for-mo…
IanVS Dec 5, 2023
3e2f4be
Skip tests that are failing due to emotion theme
IanVS Dec 5, 2023
7ddbde1
Convert new tests from jest to vitest
IanVS Dec 5, 2023
513a02f
Fix eslint test
IanVS Dec 5, 2023
dcabfe6
Update exports
IanVS Dec 5, 2023
5a6b178
Fix lockfile
IanVS Dec 5, 2023
6ce478c
Fix lint errors
IanVS Dec 5, 2023
0845820
Update vitest to 1.0.1
IanVS Dec 5, 2023
56c0710
Fix scripts tests
IanVS Dec 5, 2023
f368ac4
Update snapshots
IanVS Dec 5, 2023
20ccf0b
Unpin vite
IanVS Dec 5, 2023
3fbe517
Fix type errors
IanVS Dec 5, 2023
7df71d3
Merge branch 'next' into norbert/vitest-for-monorepo
IanVS Dec 5, 2023
ee78f8e
Merge branch 'next' of github.com:storybookjs/storybook into norbert/…
JReinhold Dec 6, 2023
6dfcad5
re-add interopRequireDefault, use mock-require in unit tests
JReinhold Dec 6, 2023
7d671ee
revert wrong export statements
JReinhold Dec 6, 2023
239a67d
increase test timeouts, add @types/mock-require
JReinhold Dec 6, 2023
e95b906
increase timeout
JReinhold Dec 6, 2023
019a19f
Fix changelog test
kasperpeulen Dec 7, 2023
5b383c0
Merge branch 'next' into norbert/vitest-for-monorepo
ndelangen Dec 11, 2023
5982486
Merge branch 'next' into addon-docs-without-react
ndelangen Dec 12, 2023
297eca8
cleanup
ndelangen Dec 12, 2023
f5a7235
cleanup
ndelangen Dec 12, 2023
90e95bd
cleanup
ndelangen Dec 12, 2023
5d65a35
fixes
ndelangen Dec 12, 2023
c44d4ee
fixes
ndelangen Dec 12, 2023
c49a841
fix react-dom-shim
JReinhold Dec 12, 2023
e2374e5
Merge branches 'addon-docs-without-react' and 'addon-docs-without-rea…
JReinhold Dec 12, 2023
c16c125
Merge branch 'next' into norbert/vitest-for-monorepo
valentinpalkovic Dec 12, 2023
6c92162
remove the add-react automigration, do not add react as dep
ndelangen Dec 12, 2023
0e7ce81
Merge branch 'addon-docs-without-react' into norbert/not-add-react-init
ndelangen Dec 12, 2023
d2d27c4
add sandbox for react16
ndelangen Dec 12, 2023
205a339
Fix Angular tests
valentinpalkovic Dec 12, 2023
eed6f38
Fix eslint
valentinpalkovic Dec 12, 2023
4cb0495
Merge branch 'norbert/not-add-react-init' into norbert/add-internalre…
ndelangen Dec 12, 2023
2eaeb1f
Fix Svelte tests
valentinpalkovic Dec 12, 2023
171493e
add e2e test for resolved react version
JReinhold Dec 13, 2023
ba924cb
add prompt-only automigrate
ndelangen Dec 13, 2023
c590019
fix react-dom-shim in vite too
JReinhold Dec 13, 2023
dab5b63
add react alias to beginning of array
JReinhold Dec 13, 2023
e5b8f86
Merge branch 'next' into addon-docs-without-react
ndelangen Dec 13, 2023
dab576d
react alias plugin enforce pre
JReinhold Dec 13, 2023
f81a397
fix ResolvedReactVersion tsx
JReinhold Dec 13, 2023
46cb279
Merge branch 'addon-docs-without-react' of github.com:storybookjs/sto…
JReinhold Dec 13, 2023
e289b59
mention both react & react-dom
ndelangen Dec 13, 2023
86ad08a
Docs: Fixed Typo in documentation template
Darth-koder007 Dec 13, 2023
d0979bc
fix e2e test asserting react 17
JReinhold Dec 13, 2023
d3b01f3
Merge branch 'next' into patch-1
jonniebigodes Dec 13, 2023
6ea2365
don't attempt to resolve @mdx-js/react outside of addon-docs
JReinhold Dec 14, 2023
99a1b78
fix
ndelangen Dec 14, 2023
a6958dd
Merge branch 'addon-docs-without-react' into norbert/not-add-react-init
ndelangen Dec 14, 2023
678f669
Update code/lib/cli/src/automigrate/fixes/prompt-remove-react.ts
ndelangen Dec 14, 2023
b217193
Update code/lib/cli/src/automigrate/fixes/prompt-remove-react.ts
ndelangen Dec 14, 2023
5d3619a
Merge branch 'norbert/not-add-react-init' into norbert/prompt-removal…
ndelangen Dec 14, 2023
fb06d36
simplify
ndelangen Dec 14, 2023
303a5d6
Merge branch 'norbert/not-add-react-init' into norbert/add-internalre…
ndelangen Dec 14, 2023
ac864a8
Fix test for Windows
valentinpalkovic Dec 14, 2023
aeec36d
add to daily
ndelangen Dec 14, 2023
389eaa9
Merge pull request #19785 from zhyd1997/refactor/ea45781-yadong-jsx-d…
ndelangen Dec 14, 2023
2131586
Docs: Remove documentation only components and MDX files
jonniebigodes Dec 14, 2023
a742b55
Fix snippets
jonniebigodes Dec 14, 2023
43af8b7
Merge pull request #25229 from storybookjs/docs_fix_install_controls_…
jonniebigodes Dec 14, 2023
523d280
Merge branch 'next' into patch-1
jonniebigodes Dec 14, 2023
276af47
Merge pull request #25221 from Darth-koder007/patch-1
jonniebigodes Dec 14, 2023
d96c62d
Docs: Fix Install troubleshooting heading
jonniebigodes Dec 14, 2023
d9d5453
Merge branch 'next' into docs_install_fix_heading
jonniebigodes Dec 14, 2023
70da7da
Merge pull request #25230 from storybookjs/docs_install_fix_heading
jonniebigodes Dec 14, 2023
01182e5
cleanup
JReinhold Dec 15, 2023
00f031b
Merge branch 'addon-docs-without-react' of github.com:storybookjs/sto…
JReinhold Dec 15, 2023
021bb56
embed `react-textarea-autosize` types
ndelangen Dec 15, 2023
ed302ce
export it
ndelangen Dec 15, 2023
37d3bf5
fix
ndelangen Dec 15, 2023
28051ed
Merge branch 'next' into addon-docs-without-react
JReinhold Dec 15, 2023
655aa07
Merge pull request #25235 from storybookjs/norbert/fix-18734-type-bun…
ndelangen Dec 15, 2023
ff88e04
API: Remove stories.json support
shilman Dec 15, 2023
4d5f965
Core: Bundle for node18 in SB8
shilman Dec 15, 2023
9d767ef
Update CHANGELOG.md for v7.6.5 [skip ci]
storybook-bot Dec 15, 2023
05efeae
Build: Removed changing `version` from SvelteKit environment story
shilman Dec 15, 2023
b3840f4
SvelteKit: new modules exports mocks
paoloricciuti Dec 15, 2023
5854e5a
Merge pull request #25241 from storybookjs/shilman/fix-sveltekit-envi…
shilman Dec 15, 2023
34d5354
Merge branch 'next' into new-sveltekit-modules
paoloricciuti Dec 15, 2023
482ef84
fix peer dep and update yarn lock
paoloricciuti Dec 15, 2023
a87e909
Docs: Documentation updates for known limitations
jonniebigodes Dec 15, 2023
a0b12e1
Merge branch 'next' into docs_fix_doc_blocks_apis
jonniebigodes Dec 15, 2023
29bf696
Docs: Adds list of available viewports
jonniebigodes Dec 17, 2023
152edae
Merge pull request #25236 from storybookjs/shilman/kill-stories-json
shilman Dec 18, 2023
2db44d7
Merge branch 'next' into addon-docs-without-react
JReinhold Dec 18, 2023
d17d493
Merge branch 'addon-docs-without-react' into norbert/not-add-react-init
JReinhold Dec 18, 2023
2c2c345
Merge branch 'norbert/not-add-react-init' into norbert/add-internalre…
JReinhold Dec 18, 2023
1ea28ea
Merge branch 'norbert/not-add-react-init' into norbert/prompt-removal…
JReinhold Dec 18, 2023
1aa7b1a
Merge pull request #25239 from storybookjs/shilman/bundle-for-node18
ndelangen Dec 18, 2023
3b63adb
Merge branch 'next' into docs_fix_doc_blocks_apis
jonniebigodes Dec 18, 2023
bc3a098
Merge branch 'next' into docs_update_viewports
jonniebigodes Dec 18, 2023
0096e7b
Merge pull request #24881 from storybookjs/addon-docs-without-react
JReinhold Dec 18, 2023
ce5d8a1
Merge pull request #25196 from storybookjs/norbert/not-add-react-init
JReinhold Dec 18, 2023
9cd9f65
Merge pull request #25215 from storybookjs/norbert/prompt-removal-rea…
JReinhold Dec 18, 2023
bd2cf8e
Merge branch 'next' into new-sveltekit-modules
paoloricciuti Dec 18, 2023
5ad970d
Merge branch 'next' into docs_update_viewports
jonniebigodes Dec 18, 2023
6633f68
Merge branch 'next' into docs_fix_doc_blocks_apis
jonniebigodes Dec 18, 2023
5d61821
Merge branch 'next' into norbert/add-internalreact16-sandbox
JReinhold Dec 18, 2023
4ef8ba7
remove inDevelopment for react16-webpack
JReinhold Dec 18, 2023
e6ecbe0
fix parallelism count
yannbf Dec 18, 2023
d9dca67
improve cadence check message
yannbf Dec 18, 2023
405dfee
Merge pull request #25199 from storybookjs/norbert/add-internalreact1…
yannbf Dec 18, 2023
93ed75b
Merge branch 'next' into docs_fix_doc_blocks_apis
jonniebigodes Dec 18, 2023
6cc0744
Merge branch 'next' into new-sveltekit-modules
paoloricciuti Dec 18, 2023
4f1931d
fix types in compodoc tests
yannbf Dec 18, 2023
f77e80b
Merge branch 'next' into docs_update_viewports
jonniebigodes Dec 18, 2023
27047ab
remove unnecessary directories
yannbf Dec 18, 2023
8acf97a
remove jest leftovers
yannbf Dec 18, 2023
5a20d19
temporarily debug windows test
yannbf Dec 18, 2023
4c3db68
Merge pull request #25253 from storybookjs/docs_update_viewports
jonniebigodes Dec 18, 2023
3d61dc5
undo function calls
yannbf Dec 18, 2023
51ead4f
temporarily skip type checks on public-types.test.ts
yannbf Dec 18, 2023
9b0ad0b
Merge branch 'next' into docs_fix_doc_blocks_apis
jonniebigodes Dec 18, 2023
93339af
Merge branch 'next' into norbert/vitest-for-monorepo
yannbf Dec 19, 2023
862637c
Merge branch 'next' into new-sveltekit-modules
paoloricciuti Dec 19, 2023
aae68d4
Merge pull request #25244 from paoloricciuti/new-sveltekit-modules
JReinhold Dec 19, 2023
c0ab202
Write changelog for 8.0.0-alpha.4 [skip ci]
storybook-bot Dec 19, 2023
62488ec
add uniqueness to cacheDir
ndelangen Dec 19, 2023
0d3c71e
print relative paths and only print static dirs when they matter
ndelangen Dec 19, 2023
a59a2d8
Merge branch 'next' into norbert/no-conflicting-cache-dir-in-builders
ndelangen Dec 19, 2023
ad9aee8
Next.js: Clean up RSC and mock server-only
shilman Dec 19, 2023
3b94da1
force builder-manager to output to 'namespaced' directory correctly
ndelangen Dec 19, 2023
8bf26a0
cleanup
ndelangen Dec 19, 2023
795fb55
fix helper tests on windows
yannbf Dec 19, 2023
7844a6e
migrate tests from jest to vitest
yannbf Dec 19, 2023
f62613c
remove unnecessary ts ignore comment
yannbf Dec 19, 2023
94f4361
remove the -s flag from build & dev
ndelangen Dec 19, 2023
be8e709
Merge pull request #25189 from storybookjs/version-non-patch-from-8.0…
JReinhold Dec 19, 2023
8466cf9
Bump version from "8.0.0-alpha.3" to "8.0.0-alpha.4" [skip ci]
storybook-bot Dec 19, 2023
10c614e
increase test timeout
yannbf Dec 19, 2023
6b61f37
temporarily skip some ci checks
yannbf Dec 19, 2023
4a32582
undo debugging checks
yannbf Dec 19, 2023
62df129
update misc code
yannbf Dec 19, 2023
62348c0
undo svelte component changes
yannbf Dec 19, 2023
ec52e79
Fix bad export map
shilman Dec 19, 2023
05e7aaa
Update CHANGELOG.md for v7.6.6 [skip ci]
storybook-bot Dec 19, 2023
f07f64e
fix types in normalize-stories
yannbf Dec 19, 2023
4169cd5
Merge pull request #25263 from storybookjs/shilman/nextjs-mock-server…
shilman Dec 19, 2023
3539f3b
a11y: link to the docs for the test runner
Flambe Dec 19, 2023
469f49c
final cleanup
yannbf Dec 19, 2023
9508756
update contribution guide
yannbf Dec 19, 2023
2b1258a
fix typo
yannbf Dec 19, 2023
da1d221
Docs: Test Coverage troubleshoot optimized builds
jonniebigodes Dec 19, 2023
4495fa9
Merge pull request #25278 from storybookjs/docs_add_test_troubleshooting
jonniebigodes Dec 19, 2023
bf498ea
Merge pull request #24415 from storybookjs/norbert/vitest-for-monorepo
ndelangen Dec 20, 2023
ae976da
fixes semver deps
ndelangen Dec 20, 2023
5c3a3db
Skip check for no framework given when ignorePreview is true
ndelangen Dec 20, 2023
1ccd125
Docs: Remove static dir flag remval
jonniebigodes Dec 20, 2023
9b344fd
Merge branch 'next' into docs_remove_static_assets_flag
jonniebigodes Dec 20, 2023
851d9c2
disable INCOMPATIBLE_PEER_DEPENDENCY error for SvelteKit sandboxes
JReinhold Dec 21, 2023
f8f8552
Merge branch 'next' into norbert/skip-framework-check-react-native
ndelangen Dec 21, 2023
2ea84ae
Merge pull request #25286 from storybookjs/norbert/skip-framework-che…
ndelangen Dec 21, 2023
0c6020e
Merge branch 'next' into norbert/bundle-semver
ndelangen Dec 21, 2023
1fbac12
Merge pull request #25266 from storybookjs/norbert/remove-deprecated-…
ndelangen Dec 21, 2023
25ee4ce
Merge branch 'next' into norbert/no-conflicting-cache-dir-in-builders
ndelangen Dec 21, 2023
3f09b13
Merge pull request #25291 from storybookjs/docs_remove_static_assets_…
ndelangen Dec 21, 2023
c92a672
Merge pull request #25283 from storybookjs/norbert/bundle-semver
shilman Dec 21, 2023
0c0cada
Merge branch 'next' into norbert/no-conflicting-cache-dir-in-builders
ndelangen Dec 21, 2023
977570c
improvements
ndelangen Dec 21, 2023
aa37ebd
Merge pull request #25264 from storybookjs/norbert/no-conflicting-cac…
ndelangen Dec 21, 2023
cee492f
fix typo
JoeKarow Dec 21, 2023
ec290ea
Fix links
jonniebigodes Dec 22, 2023
d92b6aa
Merge branch 'next' into docs_fix_doc_blocks_apis
jonniebigodes Dec 22, 2023
76340fc
Merge pull request #25248 from storybookjs/docs_fix_doc_blocks_apis
jonniebigodes Dec 22, 2023
5423ff4
Write changelog for 8.0.0-alpha.5 [skip ci]
storybook-bot Dec 22, 2023
51bc5b8
Merge branch 'next' into JoeKarow/fix-docs-typo
jonniebigodes Dec 22, 2023
99fb196
Merge pull request #25302 from JoeKarow/JoeKarow/fix-docs-typo
jonniebigodes Dec 22, 2023
b85cd03
Merge branch 'next' into patch-1
jonniebigodes Dec 22, 2023
a2c325e
Merge pull request #25272 from Flambe/patch-1
jonniebigodes Dec 22, 2023
b901f14
Merge pull request #25271 from storybookjs/version-non-patch-from-8.0…
shilman Dec 24, 2023
d4cfbbc
Bump version from "8.0.0-alpha.4" to "8.0.0-alpha.5" [skip ci]
storybook-bot Dec 24, 2023
e2c05c6
Merge branch 'next-release' into next
storybook-bot Dec 24, 2023
028652d
Vite: Fix pre-transform error in Vite 5
yannbf Dec 27, 2023
aa0b69c
Merge pull request #25329 from storybookjs/yann/pre-transform-error-v…
yannbf Dec 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
name: Run tests
command: |
cd scripts
yarn test --coverage --ci
yarn test --coverage
- store_test_results:
path: scripts/junit.xml
- report-workflow-on-failure
Expand All @@ -222,7 +222,7 @@ jobs:
name: Test
command: |
cd code
yarn test --coverage --ci --maxWorkers=6
yarn test --coverage
- store_test_results:
path: code/junit.xml
- persist_to_workspace:
Expand Down Expand Up @@ -706,30 +706,30 @@ workflows:
requires:
- build
- create-sandboxes:
parallelism: 31
parallelism: 32
requires:
- build
# - smoke-test-sandboxes: # disabled for now
# requires:
# - create-sandboxes
- build-sandboxes:
parallelism: 31
parallelism: 32
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 28
parallelism: 29
requires:
- build-sandboxes
- e2e-production:
parallelism: 26
parallelism: 27
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 26
parallelism: 27
requires:
- build-sandboxes

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: install and compile
run: yarn task --task compile --start-from=auto --no-link
- name: test
run: yarn test --runInBand --ci
run: yarn test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ code/playwright-report/
code/playwright/.cache/
code/bench-results/

/packs
/packs
code/.nx/cache
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 7.6.6

- SvelteKit: Support 2.0 modules with mocks - [#25244](https://github.com/storybookjs/storybook/pull/25244), thanks [@paoloricciuti](https://github.com/paoloricciuti)!

## 7.6.5

- Angular: Update Angular cli templates - [#25152](https://github.com/storybookjs/storybook/pull/25152), thanks [@Marklb](https://github.com/Marklb)!
- Blocks: Fix Subtitle block for unattached docs pages - [#25157](https://github.com/storybookjs/storybook/pull/25157), thanks [@kripod](https://github.com/kripod)!
- SvelteKit: Fix missing `$app` modules - [#25132](https://github.com/storybookjs/storybook/pull/25132), thanks [@paoloricciuti](https://github.com/paoloricciuti)!

## 7.6.4

- Angular: Fix CSF Plugin - [#25098](https://github.com/storybookjs/storybook/pull/25098), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## 8.0.0-alpha.5

- Core: Remove the `-s` flag from build & dev - [#25266](https://github.com/storybookjs/storybook/pull/25266), thanks [@ndelangen](https://github.com/ndelangen)!
- Core: Skip no-framework error when ignorePreview=true - [#25286](https://github.com/storybookjs/storybook/pull/25286), thanks [@ndelangen](https://github.com/ndelangen)!
- Core: Unique outputDir/cacheDir for each configDir - [#25264](https://github.com/storybookjs/storybook/pull/25264), thanks [@ndelangen](https://github.com/ndelangen)!
- Dependencies: Semver dependency fixes - [#25283](https://github.com/storybookjs/storybook/pull/25283), thanks [@ndelangen](https://github.com/ndelangen)!
- NextJS: Mock out `server-only` package for RSC - [#25263](https://github.com/storybookjs/storybook/pull/25263), thanks [@shilman](https://github.com/shilman)!

## 8.0.0-alpha.4

- API: Remove stories.json support - [#25236](https://github.com/storybookjs/storybook/pull/25236), thanks [@shilman](https://github.com/shilman)!
- Addon Docs: Remove `react` peer dependency - [#24881](https://github.com/storybookjs/storybook/pull/24881), thanks [@JReinhold](https://github.com/JReinhold)!
- Addon-docs: Support `<StrictMode />` and `<Suspense />` in source viewer - [#19785](https://github.com/storybookjs/storybook/pull/19785), thanks [@zhyd1997](https://github.com/zhyd1997)!
- Angular: Add random attribute to bootstrapped selector - [#24972](https://github.com/storybookjs/storybook/pull/24972), thanks [@Marklb](https://github.com/Marklb)!
- Angular: Reduce the warnings from `ts-loader` via stricter list of `includes` - [#24531](https://github.com/storybookjs/storybook/pull/24531), thanks [@ndelangen](https://github.com/ndelangen)!
- Blocks: Render colors in the same order as provided - [#25001](https://github.com/storybookjs/storybook/pull/25001), thanks [@kaelig](https://github.com/kaelig)!
- CLI: Add prompt-only automigrate asking for react-removal - [#25215](https://github.com/storybookjs/storybook/pull/25215), thanks [@ndelangen](https://github.com/ndelangen)!
- CLI: No longer add react in init - [#25196](https://github.com/storybookjs/storybook/pull/25196), thanks [@ndelangen](https://github.com/ndelangen)!
- Core: Set bundle target to `node18` - [#25239](https://github.com/storybookjs/storybook/pull/25239), thanks [@shilman](https://github.com/shilman)!
- SvelteKit: Fix missing `$app` modules - [#25132](https://github.com/storybookjs/storybook/pull/25132), thanks [@paoloricciuti](https://github.com/paoloricciuti)!
- SvelteKit: Support 2.0 modules with mocks - [#25244](https://github.com/storybookjs/storybook/pull/25244), thanks [@paoloricciuti](https://github.com/paoloricciuti)!
- UI: Embed `react-textarea-autosize` types - [#25235](https://github.com/storybookjs/storybook/pull/25235), thanks [@ndelangen](https://github.com/ndelangen)!

## 8.0.0-alpha.3

- Addon-docs: Fix storybook MDX check - [#24696](https://github.com/storybookjs/storybook/pull/24696), thanks [@shilman](https://github.com/shilman)!
Expand Down
9 changes: 8 additions & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- [Icons is deprecated](#icons-is-deprecated)
- [React-docgen component analysis by default](#react-docgen-component-analysis-by-default)
- [Removed postinstall](#removed-postinstall)
- [Removed stories.json](#removed-storiesjson)
- [Framework-specific changes](#framework-specific-changes)
- [Angular: Drop support for Angular \< 15](#angular-drop-support-for-angular--15)
- [Next.js: Drop support for version \< 13.5](#nextjs-drop-support-for-version--135)
Expand Down Expand Up @@ -473,6 +474,12 @@ For more information see: https://storybook.js.org/docs/react/api/main-config-ty

We removed the `@storybook/postinstall` package, which provided some utilities for addons to programmatically modify user configuration files on install. This package was years out of date, so this should be a non-disruptive change. If your addon used the package, you can view the old source code [here](https://github.com/storybookjs/storybook/tree/release-7-5/code/lib/postinstall) and adapt it into your addon.

#### Removed stories.json

In addition to the built storybook, `storybook build` generates two files, `index.json` and `stories.json`, that list out the contents of the Storybook. `stories.json` is a legacy format and we included it for backwards compatibility. As of 8.0 we no longer build `stories.json` by default, and we will remove it completely in 9.0.

In the meantime if you have code that relies on `stories.json`, you can find code that transforms the "v4" `index.json` to the "v3" `stories.json` format (and their respective TS types): https://github.com/storybookjs/storybook/blob/release-7-5/code/lib/core-server/src/utils/stories-json.ts#L71-L91

### Framework-specific changes

#### Angular: Drop support for Angular \< 15
Expand Down Expand Up @@ -542,7 +549,7 @@ To summarize:

#### typescript.skipBabel deprecated

We will remove the `typescript.skipBabel` option in Storybook 8.0.0. Please use `typescirpt.skipCompiler` instead.
We will remove the `typescript.skipBabel` option in Storybook 8.0.0. Please use `typescript.skipCompiler` instead.

#### Primary doc block accepts of prop

Expand Down
1 change: 0 additions & 1 deletion code/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ ember-output
!.babelrc.js
!.eslintrc.js
!.eslintrc-markdown.js
!.jest.config.js
!.storybook

23 changes: 7 additions & 16 deletions code/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ module.exports = {
},
plugins: ['local-rules'],
rules: {
// remove as shared eslint has jest rules removed
'jest/no-standalone-expect': 'off',
'jest/no-done-callback': 'off',
'jest/no-deprecated-functions': 'off',

'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/no-unused-disable': 'error',
'react-hooks/rules-of-hooks': 'off',
'import/extensions': 'off', // for mjs, we sometimes need extensions
'jest/no-done-callback': 'off',
'jsx-a11y/control-has-associated-label': 'off',
'@typescript-eslint/dot-notation': [
'error',
Expand All @@ -53,15 +57,7 @@ module.exports = {
},
},
{
files: [
'*.js',
'*.jsx',
'*.json',
'*.html',
'**/.storybook/*.ts',
'**/.storybook/*.tsx',
'setup-jest.ts',
],
files: ['*.js', '*.jsx', '*.json', '*.html', '**/.storybook/*.ts', '**/.storybook/*.tsx'],
parserOptions: {
project: null,
},
Expand Down Expand Up @@ -197,12 +193,6 @@ module.exports = {
'spaced-comment': 'off',
},
},
{
files: ['**/e2e-tests/**/*'],
rules: {
'jest/no-test-callback': 'off', // These aren't jest tests
},
},
{
files: ['**/builder-vite/input/iframe.html'],
rules: {
Expand All @@ -218,6 +208,7 @@ module.exports = {
},
{
files: ['**/*.ts', '!**/*.test.*', '!**/*.spec.*'],
excludedFiles: ['**/*.test.*', '**/*.mockdata.*'],
rules: {
'local-rules/no-uncategorized-errors': 'warn',
},
Expand Down
37 changes: 0 additions & 37 deletions code/__mocks__/fs-extra.js

This file was deleted.

40 changes: 40 additions & 0 deletions code/__mocks__/fs-extra.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { vi } from 'vitest';

// This is a custom function that our tests can use during setup to specify
// what the files on the "mock" filesystem should look like when any of the
// `fs` APIs are used.
let mockFiles = Object.create(null);

// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/naming-convention
export function __setMockFiles(newMockFiles: Record<string, string | null>) {
mockFiles = newMockFiles;
}

// A custom version of `readdirSync` that reads from the special mocked out
// file list set via __setMockFiles
export const writeFile = vi.fn(async (filePath: string, content: string) => {
mockFiles[filePath] = content;
});
export const readFile = vi.fn(async (filePath: string) => mockFiles[filePath]);
export const readFileSync = vi.fn((filePath = '') => mockFiles[filePath]);
export const existsSync = vi.fn((filePath: string) => !!mockFiles[filePath]);
export const readJson = vi.fn((filePath = '') => JSON.parse(mockFiles[filePath]));
export const readJsonSync = vi.fn((filePath = '') => JSON.parse(mockFiles[filePath]));
export const lstatSync = vi.fn((filePath: string) => ({
isFile: () => !!mockFiles[filePath],
}));
export const writeJson = vi.fn((filePath, json, { spaces } = {}) => {
mockFiles[filePath] = JSON.stringify(json, null, spaces);
});

export default {
__setMockFiles,
writeFile,
readFile,
readFileSync,
existsSync,
readJson,
readJsonSync,
lstatSync,
writeJson,
};
4 changes: 3 additions & 1 deletion code/__mocks__/fs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const fs = jest.createMockFromModule('fs');
import { vi } from 'vitest';

const fs = vi.createMockFromModule('fs');

// This is a custom function that our tests can use during setup to specify
// what the files on the "mock" filesystem should look like when any of the
Expand Down
4 changes: 4 additions & 0 deletions code/addons/a11y/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export const inaccessible = () => (
);
```

## Automate accessibility tests with test runner

The test runner does not apply any rules that you have set on your stories by default. You can configure the runner to correctly apply the rules by [following the guide on the Storybook docs](https://storybook.js.org/docs/writing-tests/accessibility-testing#automate-accessibility-tests-with-test-runner).

## Roadmap

- Make UI accessible
Expand Down
7 changes: 0 additions & 7 deletions code/addons/a11y/jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion code/addons/a11y/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-a11y",
"version": "8.0.0-alpha.3",
"version": "8.0.0-alpha.5",
"description": "Test component compliance with web accessibility standards",
"keywords": [
"a11y",
Expand Down
15 changes: 8 additions & 7 deletions code/addons/a11y/src/a11yRunner.test.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
import type { Mock } from 'vitest';
import { describe, beforeEach, it, expect, vi } from 'vitest';
import { addons } from '@storybook/preview-api';
import { EVENTS } from './constants';

jest.mock('@storybook/preview-api');
const mockedAddons = addons as jest.Mocked<typeof addons>;
vi.mock('@storybook/preview-api');
const mockedAddons = vi.mocked(addons);

describe('a11yRunner', () => {
let mockChannel: { on: jest.Mock; emit?: jest.Mock };
let mockChannel: { on: Mock; emit?: Mock };

beforeEach(() => {
mockedAddons.getChannel.mockReset();

mockChannel = { on: jest.fn(), emit: jest.fn() };
mockChannel = { on: vi.fn(), emit: vi.fn() };
mockedAddons.getChannel.mockReturnValue(mockChannel as any);
});

it('should listen to events', () => {
// eslint-disable-next-line global-require
require('./a11yRunner');
it('should listen to events', async () => {
await import('./a11yRunner');

expect(mockedAddons.getChannel).toHaveBeenCalled();
expect(mockChannel.on).toHaveBeenCalledWith(EVENTS.REQUEST, expect.any(Function));
Expand Down
Loading