docs/_snippets/addon-a11y-parameter-error-in-preview.md
// Replace your-framework with the framework you are using, e.g. react-vite, nextjs, vue3-vite, etc.
import type { Preview } from '@storybook/your-framework';
const preview: Preview = {
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
};
export default preview;
export default {
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
};
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, nextjs-vite)
import { definePreview } from '@storybook/your-framework';
import addonA11y from '@storybook/addon-a11y';
export default definePreview({
addons: [addonA11y()],
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
});
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, nextjs-vite)
import { definePreview } from '@storybook/your-framework';
import addonA11y from '@storybook/addon-a11y';
export default definePreview({
addons: [addonA11y()],
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
});
import { definePreview } from '@storybook/vue3-vite';
import addonA11y from '@storybook/addon-a11y';
export default definePreview({
addons: [addonA11y()],
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
});
import { definePreview } from '@storybook/vue3-vite';
import addonA11y from '@storybook/addon-a11y';
export default definePreview({
addons: [addonA11y()],
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
});
import { definePreview } from '@storybook/angular';
import addonA11y from '@storybook/addon-a11y';
export default definePreview({
addons: [addonA11y()],
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
});
import { definePreview } from '@storybook/web-components-vite';
import addonA11y from '@storybook/addon-a11y';
export default definePreview({
addons: [addonA11y()],
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
});
import { definePreview } from '@storybook/web-components-vite';
import addonA11y from '@storybook/addon-a11y';
export default definePreview({
addons: [addonA11y()],
parameters: {
// ๐ Fail all accessibility tests when violations are found
a11y: { test: 'error' },
},
});