Skip to content

Commit

Permalink
Merge pull request #29031 from Vitorgus/vitest-addon-dir-not-found
Browse files Browse the repository at this point in the history
Build: Rename vitest addon path in scripts
  • Loading branch information
yannbf committed Sep 3, 2024
2 parents e399617 + d812d4d commit 5e0d8b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tasks/sandbox-parts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function addEsbuildLoaderToStories(mainConfig: ConfigFile) {
},
},
// Handle MDX files per the addon-docs presets (ish)
{
{
test: /template-stories\\/.*\\.mdx$/,
exclude: /\\.stories\\.mdx$/,
use: [
Expand Down Expand Up @@ -512,7 +512,7 @@ export async function setupVitest(details: TemplateDetails, options: PassedOptio
// This workaround is needed because Vitest seems to have issues in link mode
// so the /setup-file and /global-setup files from the vitest addon won't work in portal protocol
if (options.link) {
const vitestAddonPath = relative(sandboxDir, join(CODE_DIRECTORY, 'addons', 'vitest'));
const vitestAddonPath = relative(sandboxDir, join(CODE_DIRECTORY, 'addons', 'test'));
packageJson.resolutions = {
...packageJson.resolutions,
'@storybook/experimental-addon-test': `file:${vitestAddonPath}`,
Expand Down

0 comments on commit 5e0d8b0

Please sign in to comment.