mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:31:19 +08:00
Refine sentence
This commit is contained in:
parent
ed1e277bf9
commit
69ea36005d
@ -173,7 +173,7 @@ Interaction tests can be expensive to maintain when applied wholesale to every c
|
||||
|
||||
#### What's the difference between interaction tests and using Jest + Testing Library alone?
|
||||
|
||||
Interaction tests integrate Jest and Testing Library into Storybook. The biggest benefit is the ability to view the component you're testing in a real browser. That helps you debug visually, instead of getting a dump of the (fake) DOM in the command line. You also avoid the limitations of how JSDOM mocks browser functionality. It's also more convenient to keep stories and tests together in one file than having them spread across files.
|
||||
Interaction tests integrate Jest and Testing Library into Storybook. The biggest benefit is the ability to view the component you're testing in a real browser. That helps you debug visually, instead of getting a dump of the (fake) DOM in the command line and avoid the limitations of how JSDOM mocks browser functionality. It's also more convenient to keep stories and tests together in one file than having them spread across files.
|
||||
|
||||
#### Learn about other UI tests
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user