Frontend architecture
- Single-page Apps
- Layout of frontend code
- Shared core functionality
- Vue components
- Composables
- Frontend code conventions
- Vuex
- HTML5 API
- Adding dependencies
- Unit testing
- Testing Library
- What Should Be Tested
- Test File Organization
- Basic Examples
- Style Guide
- Naming Conventions
- Use of
renderComponentfunction - Add smoke tests
- Use describe blocks
- Avoid long and complex unit tests
- Reference translation keys, not hardcoded strings
- Avoid using stubs
- Use default props
- Explicitly declare props that are relevant to your unit test
- Queries
- Making use of VTL
screenobject - Prefer the
userEventpackage overfireEventto simulate user interactions - Using
testing-library/jest-dom
- More References
- Testing template
- Frontend build pipeline