Below is the simple jest test block in JavaScript, under the describe I've written a simple test to print the current index of the loop (until 5) of which it is put in. But the result is always Test 5
describe("Hello", async ()=>{
    for(var i=0; i<5; ++i){
        test(``Test ${i}``, async ()=>{
            await console.debug("Test "+ i);
        });
    }
});
Can someone please clarify, how does it work?
 
     
    