Skip to content

Commit

Permalink
renamed vitest addon import file name to 'test'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitorgus committed Sep 2, 2024
1 parent 00c1524 commit d812d4d
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 d812d4d

Please sign in to comment.