Core Modules@serenity-js/coreErrorsDiffFormatterOn this pageexternalDiffFormatter Formats text representing expected, received, and unchanged lines of a diff produced by the ErrorFactory, so that they can be presented to a developer in a visually distinctive way.Implemented byAnsiDiffFormatterNoOpDiffFormatterIndex MethodsexpectedreceivedunchangedMethods externalexpectedexpected(line: string): stringParametersexternalline: stringReturns stringexternalreceivedreceived(line: string): stringParametersexternalline: stringReturns stringexternalunchangedunchanged(line: string): stringParametersexternalline: stringReturns string
Formats text representing expected, received, and unchanged lines of a diff produced by the
ErrorFactory
, so that they can be presented to a developer in a visually distinctive way.