Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
7c44d0a
Add documentation on how we develop features and release Storybook
vanessayuenn Jun 4, 2025
075da24
WIP
kylegach Jun 12, 2025
5c0be3e
Tweaks
kylegach Jun 12, 2025
e226b18
Merge branch 'next' into vy/add-release-docs
kylegach Jun 12, 2025
3f6a06c
Update sidebar titles
kylegach Jun 12, 2025
e6a2935
Improve clarity of supported versions
kylegach Jun 20, 2025
67bb672
Merge branch 'next' into vy/add-release-docs
kylegach Jun 20, 2025
37ac8d2
WIP
valentinpalkovic Jun 24, 2025
539f149
Build-Mode: Module automocking manifest generation
valentinpalkovic Jun 30, 2025
2fa1747
Support build mode for mocking
valentinpalkovic Jul 7, 2025
5de7c3e
removing labels from type unions
grantralls Jul 7, 2025
f532b91
adding union type to button for manual tests
grantralls Jul 7, 2025
cea8ce1
remove trailing comma
grantralls Jul 7, 2025
6b63b02
adding comments and fixing secondary story
grantralls Jul 7, 2025
4c4a30b
Merge branch 'fix-svelte-extract-arg-types' of github.com:grantralls/…
grantralls Jul 7, 2025
f27837d
adding explanation for empty flat mapping
grantralls Jul 8, 2025
74b1ea4
Support mocking in build and serve mode without msw
valentinpalkovic Jul 9, 2025
09d0526
Invalidate mocks and affected files on change
valentinpalkovic Jul 9, 2025
ae7ccbb
Cleanup
valentinpalkovic Jul 9, 2025
6ed46dc
Fix type assertion for global CHANNEL_OPTIONS
valentinpalkovic Jul 9, 2025
d421269
Merge remote-tracking branch 'origin/next' into valentin/storybook-mock
valentinpalkovic Jul 9, 2025
507b895
Remove msw dependency
valentinpalkovic Jul 9, 2025
452b1b1
Revert accidential addition of import
valentinpalkovic Jul 9, 2025
f3a7a3f
Fix build
valentinpalkovic Jul 9, 2025
64db30c
Update lock file
valentinpalkovic Jul 9, 2025
b7f804d
Merge branch 'next' into valentin/storybook-mock
valentinpalkovic Jul 10, 2025
51739bd
Dynamically load vite-based dependencies
valentinpalkovic Jul 10, 2025
85da36e
Renamings
valentinpalkovic Jul 10, 2025
94d6004
Renamings
valentinpalkovic Jul 10, 2025
969c6b6
Further renamings
valentinpalkovic Jul 10, 2025
d0134d0
Remove unused imports
valentinpalkovic Jul 10, 2025
2117325
Fix pnpm related issues where dependencies in virtual files cannot be…
valentinpalkovic Jul 10, 2025
0be57b8
Readd storybook/test global
valentinpalkovic Jul 10, 2025
a6e7285
Ignore ts error due to wrong types
valentinpalkovic Jul 10, 2025
ddeb032
Finetune stories
valentinpalkovic Jul 10, 2025
2d8331d
Simplify configuration
valentinpalkovic Jul 10, 2025
0467d3d
Move storybook vitest config to root
valentinpalkovic Jul 10, 2025
8a16325
Fix indentation
valentinpalkovic Jul 10, 2025
d8bfaf6
Merge remote-tracking branch 'origin/next' into valentin/storybook-mock
valentinpalkovic Jul 10, 2025
37a70c5
Merge branch 'next' into vy/add-release-docs
vanessayuenn Jul 11, 2025
f243db7
Update features.mdx
vanessayuenn Jul 11, 2025
ba39684
Add telemetry
valentinpalkovic Jul 11, 2025
7f9ccd1
Add E2E tests
valentinpalkovic Jul 11, 2025
0200199
Optimize @vitest/spy dependency
valentinpalkovic Jul 11, 2025
1bc7f56
Fix event checker
valentinpalkovic Jul 11, 2025
2529308
Implement module mocking for Webpack
valentinpalkovic Jul 13, 2025
a7f833f
Update event log checker to find main event by event type when noBoot…
valentinpalkovic Jul 13, 2025
8757901
Enable mocking E2E tests for all frameworks
valentinpalkovic Jul 13, 2025
ec1721e
Update package.json
valentinpalkovic Jul 13, 2025
ddcc52e
Refactor sandbox-parts.ts to always include mocking setup for Vitest …
valentinpalkovic Jul 13, 2025
0d381f1
Add temporary resolution field for rollup
valentinpalkovic Jul 13, 2025
e5cd418
Adjust event-log-checker to consider mocking event
valentinpalkovic Jul 14, 2025
91374d1
Don't setup mocks for bench sandboxes
valentinpalkovic Jul 14, 2025
e5b3b3b
Add rollup version resolution to package.json
valentinpalkovic Jul 14, 2025
4bfdfee
Update sandbox task conditions to check for 'Bench' instead of 'bench'
valentinpalkovic Jul 14, 2025
c806bf0
Rewrite mock modules to be framework agnostic
valentinpalkovic Jul 14, 2025
198b15c
Adjust sb-module-mocking e2e tests
valentinpalkovic Jul 14, 2025
f84e398
Fix mocking when preserveSymlink is true
valentinpalkovic Jul 14, 2025
c00e0c2
Refactor event-log-checker to exclude mocking events from log assertions
valentinpalkovic Jul 14, 2025
3c9376d
Merge branch 'next' into fix-svelte-extract-arg-types
grantralls Jul 14, 2025
368b902
Simplify mock stories
valentinpalkovic Jul 14, 2025
6c006cf
Fix module mocking stories
valentinpalkovic Jul 14, 2025
c7b2846
Transform NodeModuleMocking into JavaScript
valentinpalkovic Jul 14, 2025
77f6c71
Update storybook mock stories to use 'text' instead of 'object' for a…
valentinpalkovic Jul 14, 2025
e7699cc
Update CHANGELOG.md for v9.0.17 [skip ci]
storybook-bot Jul 15, 2025
2770930
Fix Windows-related issues
valentinpalkovic Jul 15, 2025
200c6d3
Change transform order in viteMockPlugin from 'post' to 'pre'
valentinpalkovic Jul 15, 2025
1c0e813
Fix creation of react-webpack/prerelease-ts in linked mode
valentinpalkovic Jul 16, 2025
73f030d
Merge branch 'next' into fix-svelte-extract-arg-types
JReinhold Jul 16, 2025
a5d24df
Implement watcher for mocking in Webpack-based projects
valentinpalkovic Jul 16, 2025
5b4f063
Use babel for parsing mocks
valentinpalkovic Jul 16, 2025
668f2d2
Improve error logging in viteMockPlugin to include error details
valentinpalkovic Jul 16, 2025
6d5499b
Revert change
valentinpalkovic Jul 16, 2025
b7d3a49
reverting component & story changes
grantralls Jul 16, 2025
477ca9e
reverting component & story changes
grantralls Jul 16, 2025
628f30c
Merge pull request #31980 from grantralls/fix-svelte-extract-arg-types
JReinhold Jul 16, 2025
bb66c83
Support sb.mock(import(x), ...) syntax
valentinpalkovic Jul 17, 2025
7ac5042
Use spyOn from storybook/test
valentinpalkovic Jul 17, 2025
f54c196
Use proper type for sb.mock
valentinpalkovic Jul 17, 2025
4ecd08f
Remove unnecessary try/catch block
valentinpalkovic Jul 17, 2025
88961b7
Add Todo comments
valentinpalkovic Jul 17, 2025
e47c289
Remove unnecessary code
valentinpalkovic Jul 17, 2025
9ffd81d
Telemetry: Add nodeLinker to telemetry
valentinpalkovic Jul 18, 2025
e0b28ed
Add tests
valentinpalkovic Jul 18, 2025
ec50290
Correct type
valentinpalkovic Jul 18, 2025
f7c3e91
Merge pull request #32072 from storybookjs/valentin/add-node-linker-t…
valentinpalkovic Jul 18, 2025
d358bfc
Cleanup
valentinpalkovic Jul 18, 2025
7f7556c
Merge branch 'next' into valentin/storybook-mock
valentinpalkovic Jul 18, 2025
2bce95e
Merge pull request #31987 from storybookjs/valentin/storybook-mock
valentinpalkovic Jul 18, 2025
ea3843a
ignore 0.x packages in compatibility checks
yannbf Jul 18, 2025
e243936
docs: remove deprecated vscode extension
Joe-Moran Jul 18, 2025
20f98c6
Merge branch 'next' into vy/add-release-docs
kylegach Jul 18, 2025
9f17aa1
Merge pull request #31662 from storybookjs/vy/add-release-docs
kylegach Jul 18, 2025
7520398
Merge branch 'next' into patch-3
kylegach Jul 18, 2025
b987886
Merge pull request #32078 from Joe-Moran/patch-3
kylegach Jul 18, 2025
2510bf8
Merge pull request #32077 from storybookjs/yann/fix-doctor-reports
yannbf Jul 21, 2025
ea1a760
Write changelog for 9.1.0-alpha.9 [skip ci]
storybook-bot Jul 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
valentinpalkovic committed Jul 9, 2025
commit ae7ccbbd367d13f97675aed6ae106c337d4d3cbd
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,22 @@ export const viteInjectMockerRuntime = (options: {
async load(id) {
if (exactRegex(id).test(entryPath)) {
return readFileSync(
require.resolve('../../../templates/mocker-runtime-build-code.template.js'),
require.resolve(
join(__dirname, '..', '..', '..', 'templates', 'mocker-runtime-build-code.template.js')
),
'utf-8'
);
}
if (exactRegex(id).test(VIRTUAL_MODULE_MOCKER_BUILD_INTERCEPTOR)) {
return await readFile(
require.resolve('./vitePlugins/vite-inject-mocker/module-mocker-build-interceptor.js'),
require.resolve(
join(
__dirname,
'vitePlugins',
'vite-inject-mocker',
'module-mocker-build-interceptor.js'
)
),
'utf-8'
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export function viteMockPlugin(options: MockBuildManifestPluginOptions): Plugin[

buildStart() {
parse = this.parse.bind(this);
this.addWatchFile(options.previewConfigPath);
mockCalls = extractMockCalls(options, parse, viteConfig);
},

Expand Down Expand Up @@ -87,39 +86,6 @@ export function viteMockPlugin(options: MockBuildManifestPluginOptions): Plugin[
server.watcher.on('unlink', invalidateAffectedFiles);
},

// handleHotUpdate({ file, server }) {
// if (file === options.previewConfigPath) {
// // Store the old mocks before updating
// const oldMockCalls = mockCalls;
// // Re-extract mocks to get the latest list
// mockCalls = extractMockCalls(options, parse, viteConfig);

// // Invalidate the preview file
// const previewMod = server.moduleGraph.getModuleById(options.previewConfigPath);
// if (previewMod) {
// server.moduleGraph.invalidateModule(previewMod);
// }

// // Invalidate all current mocks (including optimized/node_modules variants)
// for (const call of mockCalls) {
// invalidateAllRelatedModules(server, call.absolutePath, call.path);
// }

// // Invalidate all removed mocks (present in old, missing in new)
// const newAbsPaths = new Set(mockCalls.map((c) => c.absolutePath));
// for (const oldCall of oldMockCalls) {
// if (!newAbsPaths.has(oldCall.absolutePath)) {
// invalidateAllRelatedModules(server, oldCall.absolutePath, oldCall.path);
// }
// }

// // Force a full browser reload so all affected files are refetched
// server.ws.send({ type: 'full-reload' });

// return [];
// }
// },

async load(id) {
for (const call of mockCalls) {
if (call.absolutePath !== id) {
Expand Down