#Interaction Testing vs Unit Testing

2 messages · Page 1 of 1 (latest)

rapid bay
#

I'm not sure what the diff is. I'm used to testing stories with compose, but now we have the play function. Should I use both? When should I use each?

young sail
#

i think of storybook interaction tests as a integration test in the browser.

because UI component libraries render to a browser, this is an important integration to consider in the test result. and i generally don't unit test anything i can better cover with an integration test.

unit tests should, theoretically, test a unit of code that has zero integrations.