I am trying to study jest but since this concept is very new to me I am unable to solve this practice question. Can somebody help me to solve this and please add Comments so that I understand.
Consider the function
updateTask(index,update_task) that updates the task at given index in Tasks array.
. Write a test for the following scenario that throws an Array Out of Bounds Exceptio
. index is greater than Tasks array length.
**
Array:
var tasks =[];
tasks =[{task_name: "task 1", status: "Open"},
{task_name:"Task 2", status:"closed"}];
**