You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
The Screenplay generator reports SP0071 when a reactor executes a command and handles its outcome in code (reading, matching or discarding the CommandResult), and SP0072 when a reactor recovers from redelivery through ReactorDelivery receipts, instead of keeping its file reference without saying why. (part of #3094)
Fixed
The Screenplay generator no longer states a reactor that returns several events as produces when Chronicle could refuse the batch differently from Screenplay: Chronicle appends a returned batch as one unit, while a Screenplay reaction appends each fact separately. When a later event can be rejected by a constraint (a unique property, a class-level [Unique], or an IConstraint target), an earlier event closes the stream, or a constraint cannot be read, the reactor keeps its file reference and SP0070 explains why. (part of #3093)
The Screenplay generator reads screen source with a scanner that understands strings, template literals, regular expressions and JSX text and attributes, so // inside a value such as title="https://example.com" is no longer cut off as a comment and an import inside a template literal is no longer read as an import. A screen that renders other components or HTML beside the Cratis Components it reads now reports each part it does not read with SP0028, and a screen whose source cannot be scanned reports that once instead of stating a partial structure. (#3095)