Skip to content

[pull] next from storybookjs:next#706

Merged
pull[bot] merged 20 commits intocode:nextfrom
storybookjs:next
Mar 17, 2026
Merged

[pull] next from storybookjs:next#706
pull[bot] merged 20 commits intocode:nextfrom
storybookjs:next

Conversation

@pull
Copy link

@pull pull bot commented Mar 17, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Copilot AI and others added 20 commits March 11, 2026 16:19
Fixes AddonVitestPostinstallError for these patterns:
- defineConfig(mergeConfig(...)) – defineConfig wrapping mergeConfig
- defineConfig(mergeConfig(...) satisfies ViteUserConfig) – satisfies operator
- mergeConfig(...) as ViteUserConfig – TSAsExpression wrapper
- const config = mergeConfig(...); export default config – re-exported variable
- const vitestConfig = {...}; export default mergeConfig(viteConfig, vitestConfig) – constant arg
- defineProject({...}) – defineProject as alias for defineConfig
- const test = {...}; mergeConfig(viteConfig, { test }) – shorthand property

New helpers added to updateVitestFile.ts:
- unwrapTSExpression: peels off TSAsExpression/TSSatisfiesExpression/TSTypeAssertion
- resolveExpression: resolves through variable references + TS type wrappers
- isDefineConfigLike: recognizes defineConfig and defineProject
- getEffectiveMergeConfigCall: finds the mergeConfig call through any wrappers

26 unit tests passing (19 existing + 7 new).

Co-authored-by: valentinpalkovic <5889929+valentinpalkovic@users.noreply.github.com>
- Use proper union type for TS expression unwrapping (TSAsExpression | TSSatisfiesExpression | TSTypeAssertion)
- Extract resolveTestPropValue helper to replace nested ternary with a named function

Co-authored-by: valentinpalkovic <5889929+valentinpalkovic@users.noreply.github.com>
Co-authored-by: valentinpalkovic <5889929+valentinpalkovic@users.noreply.github.com>
…3.0-beta.1

Release: Prerelease 10.3.0-beta.2
…deps-for-mocks

Vite: Add mock entries to optimizeDeps.entries
Build: Update `test-runner` to use a single jest-worker
…tall-error

Addon-Vitest: Handle additional vitest config export patterns in postinstall
@pull pull bot locked and limited conversation to collaborators Mar 17, 2026
@pull pull bot added the ⤵️ pull label Mar 17, 2026
@pull pull bot merged commit 271bd1e into code:next Mar 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants