Issue with `it.prop` and async tests in `@effect/vitest`

I don't think it.prop from @effect/vitest is working as it should with async tests:

// 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 } }
);

Am I doing something wrong or is this a bug?
Was this page helpful?