DEV Community

Discussion on: Parameterized testing in Deno

Collapse
 
canrau profile image
Can Rau

Interesting, thanks for sharing πŸ™

I just use a for..of loop so far like so

for (const test of testCases) {
    assertEquals(await functionToTest(test.arg, test.arg2), test.result);
}
Enter fullscreen mode Exit fullscreen mode