Put in order · Vue.js course · Module 12: Testing & Deploy
Steps of writing a component test
Arrange the steps of writing a Vue component test in order:
Items to put in order
- Import mount from @vue/test-utils
- Assertions to verify the result
- Mount the component in the test
- Import describe, it, expect from vitest
- Import the component under test
You can check the correct answer by solving this task in the CodeWorlds game.