Guiding Principles of Vue Testing Library
mainVue Testing Library is designed to encourage testing practices that resemble how software is actually used. Its core principles are:
- DOM-centric testing: Utilities deal with DOM nodes rather than component instances. You should avoid testing component internal state or instances directly.
- Versatility: Utilities are useful for testing both individual components and full Vue applications.
- Simplicity: APIs are designed to be simple, flexible, and lightweight.