Skip to content

Commit

Permalink
docs: fix layout testing.md (#2958)
Browse files Browse the repository at this point in the history
Fix layout testing.md
  • Loading branch information
11Alone11 authored Aug 13, 2024
1 parent 308f479 commit 3849cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guide/scaling-up/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ Component tests should focus on the component's public interfaces rather than in
</VTCodeGroupTab>
</VTCodeGroup>

- **DON'T**
**DON'T**

Don't assert the private state of a component instance or test the private methods of a component. Testing implementation details makes the tests brittle, as they are more likely to break and require updates when the implementation changes.
- Don't assert the private state of a component instance or test the private methods of a component. Testing implementation details makes the tests brittle, as they are more likely to break and require updates when the implementation changes.

The component's ultimate job is rendering the correct DOM output, so tests focusing on the DOM output provide the same level of correctness assurance (if not more) while being more robust and resilient to change.

Expand Down

0 comments on commit 3849cfc

Please sign in to comment.