// Got error: Property failed by returning false
it.prop(
'should return a 200',
[Schema.String],
async ([str]) => {
expect(str).toEqual(str);
},
{ fastCheck: { numRuns: 1, endOnFailure: true } }
);
// works fine with no `async`
it.prop(
'should return a 200',
[Schema.String],
([str]) => {
expect(str).toEqual(str);
},
{ fastCheck: { numRuns: 1, endOnFailure: true } }
);
// Got error: Property failed by returning false
it.prop(
'should return a 200',
[Schema.String],
async ([str]) => {
expect(str).toEqual(str);
},
{ fastCheck: { numRuns: 1, endOnFailure: true } }
);
// works fine with no `async`
it.prop(
'should return a 200',
[Schema.String],
([str]) => {
expect(str).toEqual(str);
},
{ fastCheck: { numRuns: 1, endOnFailure: true } }
);