Skip to content

Commit

Permalink
feat: test-runner config 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
designsoo committed Jul 14, 2024
1 parent 0540708 commit 015bf4b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .storybook/test-runner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { TestRunnerConfig } from '@storybook/test-runner';
import { injectAxe, checkA11y } from 'axe-playwright';

const config: TestRunnerConfig = {
async preVisit(page) {
await injectAxe(page);
},
async postVisit(page) {
await checkA11y(page, '#storybook-root', {
detailedReport: true,
detailedReportOptions: {
html: true,
},
});
},
};

export default config;

0 comments on commit 015bf4b

Please sign in to comment.