Hi guys im new to jasmine and I am currently running some tests. I am not sure if what im doing the correct thing but I the thing is I want to fetch a data first from an api. And then I will loop through the data and construct my it statements.
describe('some string', async () => {
const data = await fetchData();
data.items.forEach((item) => {
it('some string', () => {
//do some test
})
});
});
But it doesnt seem to wait for the fetchData and immediately start the loop. Can someone please help me?