Remote / foldkit-remote/testing

WriteExpectation

type · packages/remote/src/scenario.ts:45

type WriteExpectation =
  | {
      readonly _tag: 'Accepted'
      readonly row: Row
    }
  | {
      readonly _tag: 'Refused'
      readonly refusal: RefusalMatch
    }
  | {
      readonly _tag: 'Forbidden'
    }
  | {
      readonly _tag: 'Unauthenticated'
    }

What every backend must say of a write.