WIP: Codemods and refactorings #43139
Annotations
2 errors
src/codemod/helpers/csf-factories-utils.test.ts > getSyncedStorybookAddons > should not modify the code if all addons are already synced:
code/lib/cli-storybook/src/codemod/helpers/csf-factories-utils.test.ts#L92
AssertionError: expected '\r\n import * as addonA11yAnnota…' to deeply equal '\n import * as addonA11yAnnotati…'
- Expected
+ Received
-
+
- 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";
+
- export default definePreview({
+ export default definePreview({
- addons: [myAddonAnnotations, addonA11yAnnotations],
+ addons: [myAddonAnnotations, addonA11yAnnotations],
- });
+ });
❯ src/codemod/helpers/csf-factories-utils.test.ts:92:38
|
Core Unit Tests, windows-latest
Process completed with exit code 1.
|