
วิธีการ Custom Mount Commands สำหรับ Redux เพื่อใช้งานกับ Component Testing ใน Cypress
โดยปกติแล้วเวลาที่เราใช้งาน React หรือ NextJS เลี่ยงไม่ได้ที่จะต้องใช้ Library ต่างๆ และอาจจะมี Library บางตัวที่ต้องกำหนดค่าบางอย่างไว้ตรง root เช่น Provider ของ Redux
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(