Skip to content

Commit

Permalink
Merge pull request #24696 from storybookjs/shilman/24644-is-story-mdx
Browse files Browse the repository at this point in the history
Addon-docs: Fix storybook MDX check
  • Loading branch information
ndelangen authored Dec 11, 2023
2 parents c82e136 + 0d6da75 commit ed8a223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/addons/docs/src/plugins/mdx-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import remarkExternalLinks from 'remark-external-links';
import { createFilter } from '@rollup/pluginutils';
import { dirname, join } from 'path';

const isStorybookMdx = (id: string) => id.endsWith('stories.mdx') || id.endsWith('story.mdx');
const isStorybookMdx = (id: string) => id.endsWith('.stories.mdx') || id.endsWith('.story.mdx');

/**
* Storybook uses two different loaders when dealing with MDX:
Expand Down
3 changes: 2 additions & 1 deletion code/lib/cli/src/automigrate/fixes/missing-babelrc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ describe('missing-babelrc fix', () => {
).resolves.toBeNull();
});

it('prompts when babelrc file is missing and framework does not provide babel config', async () => {
// eslint-disable-next-line jest/no-disabled-tests
it.skip('prompts when babelrc file is missing and framework does not provide babel config', async () => {
await expect(
check({
packageManager,
Expand Down

0 comments on commit ed8a223

Please sign in to comment.