Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Finally we have stories, which are tests of our containers that are rendered through Storybook. A story can import both pure and container components. In the case of testing isolated views, the most likely scenario is importing pure components. When rendering complete flows, however, you might use container components to test user interactions with the store or to test changes on events.

To do that, create a new folder and corresponding file that ends in ".stories.js" in the stories folder, and import the pure component in that file.

The api package

The API uses Node along with Express. Under packages/api/src there are folders for routes, middleware, controllers, and models.

...