Skip to content

WIP: Codemods and refactorings #43139

WIP: Codemods and refactorings

WIP: Codemods and refactorings #43139

Triggered via pull request January 20, 2025 18:48
Status Failure
Total duration 11m 5s
Artifacts

tests-unit.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

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.