Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 899 Bytes
id title
interaction-testing
Interaction Testing

For the interaction testing, Enzyme is the best tool we can use. With that, we can simulate user inputs and see what they are doing.

You can directly write these kind of tests with a full-featured testing framework, such as Mocha or Jest. Have a look at the Enzyme guidelines for more information on how to integrate them.

Specs Addon

If you like to write your tests directly inside your stories, we also have an addon called specs.

Storybook Specs Addon

With that, you can write test specs directly inside stories. Additionally, you also can use your CI server to run those tests.