Skip to content

Addon A11y: Adjust default behaviour when using with experimental-addon-test #42908

Addon A11y: Adjust default behaviour when using with experimental-addon-test

Addon A11y: Adjust default behaviour when using with experimental-addon-test #42908

Triggered via pull request January 8, 2025 10:27
Status Failure
Total duration 11m 2s
Artifacts

tests-unit.yml

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

Annotations

2 errors
src/automigrate/fixes/addon-a11y-addon-test.test.ts > addonA11yAddonTest > transformPreviewFile > should not add a11y-test if it already exists in the tags property: code/lib/cli-storybook/src/automigrate/fixes/addon-a11y-addon-test.test.ts#L696
AssertionError: expected ' import type { Preview } from "@…' to be ' import type { Preview } from "@…' // Object.is equality - Expected + Received - import type { Preview } from "@storybook/react"; - + import type { Preview } from "@storybook/react"; + - const preview: Preview = { + const preview: Preview = { - tags: ["a11y-test"], + tags: ["a11y-test"], - parameters: { + parameters: { - controls: { + controls: { - matchers: { + matchers: { - color: /(background|color)$/i, + color: /(background|color)$/i, - date: /Date$/i, + date: /Date$/i, - }, + }, - }, + }, - }, + }, - }; - + }; + export default preview; ❯ src/automigrate/fixes/addon-a11y-addon-test.test.ts:696:27
Core Unit Tests, windows-latest
Process completed with exit code 1.