Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 646 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 646 Bytes

@redwoodjs/testing

This package includes Redwood's Jest and Storybook config.

Notes on Storybook

This section contains some working notes on Redwood's Storybook config, mainly the webpackFinal prop.

  • staticDirs

    ...(process.env.NODE_ENV !== 'production' && {
      staticDirs: [path.join(redwoodProjectPaths.web.base, 'public')],
    }),

    We only set staticDirs when running Storybook process; will fail if set for SB --build.

  • resolve extensions and plugins

    sbConfig.resolve.extensions = rwConfig.resolve.extensions
    sbConfig.resolve.plugins = rwConfig.resolve.plugins // Directory Named Plugin