Rapid Testing with Vitest: Master Unit Testing & Mocking
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

Handle and Test a Shallow Merge

Writing our deep merge function starts with supporting a shallow merge. In this lesson, use TDD to shallow merge both objects and arrays.