I am using test.each to run through some combinations of input data for a function:
const combinations = [
[0,0],
[1,0], // this combination doesn't work, I want to skip it
[0,1],
[1,0],
[1,1],
]
describe('test all combinations', () => {
test.each(combinations)(
'combination a=%p and b=%p works',
(a,b,done) => {
expect(foo(a,b).toEqual(bar))
});
});
Now, some of these combinations don't currently work and I want to skip those tests for the time being. If I just had one test I would simply do test.skip, but I don't know how this works if I want to skip some specific values in the input array.