Skip to content
Tom Brunet edited this page Oct 4, 2023 · 4 revisions

Setup test environment for @storybook/addon-a11y

  • From root: yarn task dev
  • Choose react-webpack/18-ts
  • After built, Ctrl-c to exit and continue
  • From code/: yarn build addon-a11y
  • From sandbox/react-webpack-18-ts:
    • yarn add ../../code/addons/a11y
    • yarn install
    • Edit sandbox/react-webpack-18-ts/.storybook/main.ts and add '@storybook/addon-a11y' to the addons section
    • yarn run storybook

For changes

  • From code/: yarn build addon-a11y (right arrow on the addon and then press enter)
  • From sandbox/react-webpack-18-ts:
    • yarn run storybook

or

  • From sandbox/react-webpack-18-ts: pushd ../../code && yarn build addon-a11y && popd && yarn run storybook
Clone this wiki locally