This commit is contained in:
Yann Braga 2025-01-20 21:49:21 +01:00
parent 5b4cd43418
commit 80c80acdeb
3 changed files with 3 additions and 4 deletions

View File

@ -268,7 +268,7 @@ describe('ConfigFile', () => {
) )
).toEqual('webpack5'); ).toEqual('webpack5');
}); });
it.only('tags', () => { it('tags', () => {
expect( expect(
getField( getField(
['tags'], ['tags'],

View File

@ -48,7 +48,7 @@ describe('getSyncedStorybookAddons', () => {
`); `);
}); });
it('should add addons if the preview has no addons field', async () => { it('should add addons if the preview has no addons field', async () => {
const originalCode = ` const originalCode = dedent`
import { definePreview } from "@storybook/react/preview"; import { definePreview } from "@storybook/react/preview";
export default definePreview({ export default definePreview({
@ -73,7 +73,7 @@ describe('getSyncedStorybookAddons', () => {
`); `);
}); });
it('should not modify the code if all addons are already synced', async () => { it('should not modify the code if all addons are already synced', async () => {
const originalCode = ` const originalCode = dedent`
import * as addonA11yAnnotations from "@storybook/addon-a11y/preview"; import * as addonA11yAnnotations from "@storybook/addon-a11y/preview";
import * as myAddonAnnotations from "custom-addon/preview"; import * as myAddonAnnotations from "custom-addon/preview";
import { definePreview } from "@storybook/react/preview"; import { definePreview } from "@storybook/react/preview";

View File

@ -2,7 +2,6 @@ import dirSize from 'fast-folder-size';
// eslint-disable-next-line depend/ban-dependencies // eslint-disable-next-line depend/ban-dependencies
import { pathExists, remove } from 'fs-extra'; import { pathExists, remove } from 'fs-extra';
import { join } from 'path'; import { join } from 'path';
import prompts from 'prompts';
import { promisify } from 'util'; import { promisify } from 'util';
import { now, saveBench } from '../bench/utils'; import { now, saveBench } from '../bench/utils';