mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:31:48 +08:00
fix lint
This commit is contained in:
parent
5b4cd43418
commit
80c80acdeb
@ -268,7 +268,7 @@ describe('ConfigFile', () => {
|
|||||||
)
|
)
|
||||||
).toEqual('webpack5');
|
).toEqual('webpack5');
|
||||||
});
|
});
|
||||||
it.only('tags', () => {
|
it('tags', () => {
|
||||||
expect(
|
expect(
|
||||||
getField(
|
getField(
|
||||||
['tags'],
|
['tags'],
|
||||||
|
@ -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";
|
||||||
|
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user