Scaffold generator does not generate stories or tests

The generators actually do create a test and story file – at least yarn rw g component <name> does (unless we changed this recently).

Perhaps you are referring to a different command?

The generated tests and stories are a nice starter but we actually deleted the stub tests since they are a simple render test. You can actually get these render tests from your stories with the storybook addon interaction.

module.exports = {
  features: { modernInlineRender: true, interactionsDebugger: true },
  // Storybook essentials are baked into redwood
  addons: ['@storybook/addon-interactions'],
}
2 Likes