formatUtils
Index
Enumerations
LogLevel
Discard
Error
Info
Warning
Style
BOLD
Type Aliases
Field
Type declaration
label: string
value: Tuple<any>
Source
Type parameters
- T
Tuple
Type
Variables
constType
Type declaration
readonlyADDED: ADDED
readonlyCODE: CODE
readonlyDEPENDENT: DEPENDENT
readonlyDESCRIPTOR: DESCRIPTOR
readonlyDURATION: DURATION
readonlyID: ID
readonlyIDENT: IDENT
readonlyINSPECT: INSPECT
readonlyLOCATOR: LOCATOR
readonlyMARKDOWN: MARKDOWN
readonlyMARKDOWN_INLINE: MARKDOWN_INLINE
readonlyNAME: NAME
readonlyNO_HINT: NO_HINT
readonlyNULL: NULL
readonlyNUMBER: NUMBER
readonlyPACKAGE_EXTENSION: PACKAGE_EXTENSION
readonlyPATH: PATH
readonlyRANGE: RANGE
readonlyREFERENCE: REFERENCE
readonlyREMOVED: REMOVED
readonlyRESOLUTION: RESOLUTION
readonlySCOPE: SCOPE
readonlySETTING: SETTING
readonlySIZE: SIZE
readonlySIZE_DIFF: SIZE_DIFF
readonlyURL: URL
constsupportsColor
constsupportsHyperlinks
Functions
addLogFilterSupport
Parameters
report: Report
__namedParameters: { configuration: Configuration }
Returns void
applyColor
Parameters
configuration: Configuration
value: string
formatType: string
Returns string
applyHyperlink
Parameters
configuration: Configuration
text: string
href: string
Returns string
applyStyle
Parameters
configuration: Configuration
text: string
flags: BOLD
Returns string
json
Type parameters
- T: NO_HINT | ID | NULL | SCOPE | NAME | RANGE | REFERENCE | NUMBER | PATH | URL | ADDED | REMOVED | CODE | INSPECT | DURATION | SIZE | SIZE_DIFF | IDENT | DESCRIPTOR | LOCATOR | RESOLUTION | DEPENDENT | PACKAGE_EXTENSION | SETTING | MARKDOWN | MARKDOWN_INLINE
Parameters
value: Source<T>
formatType: string | T
Returns any
jsonOrPretty
Type parameters
- T: NO_HINT | ID | NULL | SCOPE | NAME | RANGE | REFERENCE | NUMBER | PATH | URL | ADDED | REMOVED | CODE | INSPECT | DURATION | SIZE | SIZE_DIFF | IDENT | DESCRIPTOR | LOCATOR | RESOLUTION | DEPENDENT | PACKAGE_EXTENSION | SETTING | MARKDOWN | MARKDOWN_INLINE
Parameters
outputJson: boolean
configuration: Configuration
__namedParameters: Tuple<T>
Returns any
mark
Parameters
configuration: Configuration
Returns { Check: string; Cross: string; Question: string }
Check: string
Cross: string
Question: string
pretty
Type parameters
- T: NO_HINT | ID | NULL | SCOPE | NAME | RANGE | REFERENCE | NUMBER | PATH | URL | ADDED | REMOVED | CODE | INSPECT | DURATION | SIZE | SIZE_DIFF | IDENT | DESCRIPTOR | LOCATOR | RESOLUTION | DEPENDENT | PACKAGE_EXTENSION | SETTING | MARKDOWN | MARKDOWN_INLINE
Parameters
configuration: Configuration
value: Source<T>
formatType: string | T
Returns string
prettyField
Parameters
configuration: Configuration
__namedParameters: Field
Returns string
prettyList
Type parameters
- T: NO_HINT | ID | NULL | SCOPE | NAME | RANGE | REFERENCE | NUMBER | PATH | URL | ADDED | REMOVED | CODE | INSPECT | DURATION | SIZE | SIZE_DIFF | IDENT | DESCRIPTOR | LOCATOR | RESOLUTION | DEPENDENT | PACKAGE_EXTENSION | SETTING | MARKDOWN | MARKDOWN_INLINE
Parameters
configuration: Configuration
values: Iterable<Source<T>>
formatType: string | T
__namedParameters: { separator?: string } = {}
Returns string
prettyTruncatedLocatorList
Parameters
configuration: Configuration
locators: Locator[]
recommendedLength: number
Returns string
tuple
Type parameters
- T: NO_HINT | ID | NULL | SCOPE | NAME | RANGE | REFERENCE | NUMBER | PATH | URL | ADDED | REMOVED | CODE | INSPECT | DURATION | SIZE | SIZE_DIFF | IDENT | DESCRIPTOR | LOCATOR | RESOLUTION | DEPENDENT | PACKAGE_EXTENSION | SETTING | MARKDOWN | MARKDOWN_INLINE
Parameters
formatType: T
value: Source<T>
Returns Tuple<T>
Add support support for the
logFilters
setting to the specified Report instance.