Ah Yeah, i have that in my current version.
In the latest vitest it looks like these can change the signature of the called function:
test.each([
{ a: 1, b: 1, expected: 2 },
{ a: 1, b: 2, expected: 3 },
{ a: 2, b: 1, expected: 3 },
])('add($a, $b) -> $expected', ({ a, b, expected }) => {
expect(a + b).toBe(expected)
})
and maybe theyre composable?
test.each([
{ a: 1, b: 1, expected: 2 },
{ a: 1, b: 2, expected: 3 },
{ a: 2, b: 1, expected: 3 },
]).skipIf(isDev)('add($a, $b) -> $expected', ({ a, b, expected }) => {
expect(a + b).toBe(expected)
})