@redwoodjs/testing
TypeScript icon, indicating that this package has built-in type declarations

7.4.3 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @redwoodjs/testing

Weekly Downloads

39,079

Version

7.4.3

License

MIT

Unpacked Size

91.6 kB

Total Files

76

Last publish

Collaborators

  • joshgmw
  • selfteachme
  • tobbe
  • desaadi
  • mojombo
  • dac09
  • thedavidprice