Addon A11y: Adjust default behaviour when using with experimental-addon-test #42908
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.
|