Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO

* Prevent duplicate scenario execution where the same feature is targeted in multiple line expressions ([#1706](https://github.com/cucumber/cucumber-js/issues/1706))
* Fixed reports banner to point to [new docs](https://cucumber.io/docs/cucumber/environment-variables/) about environment variables
* errorMessage and errorStack functions are not found [1582](https://github.com/cucumber/cucumber-js/issues/1582)

## [7.3.0] (2021-06-17)

Expand Down
12 changes: 12 additions & 0 deletions src/formatter/get_color_fns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export interface IColorFns {
forStatus: (status: TestStepResultStatus) => IColorFn
location: IColorFn
tag: IColorFn
diffAdded: IColorFn
diffRemoved: IColorFn
errorMessage: IColorFn
errorStack: IColorFn
}

export default function getColorFns(enabled: boolean): IColorFns {
Expand All @@ -27,6 +31,10 @@ export default function getColorFns(enabled: boolean): IColorFns {
},
location: colors.gray.bind(colors),
tag: colors.cyan.bind(colors),
diffAdded: colors.green.bind(colors),
diffRemoved: colors.red.bind(colors),
errorMessage: colors.red.bind(colors),
errorStack: colors.grey.bind(colors),
}
} else {
return {
Expand All @@ -35,6 +43,10 @@ export default function getColorFns(enabled: boolean): IColorFns {
},
location: (x) => x,
tag: (x) => x,
diffAdded: (x) => x,
diffRemoved: (x) => x,
errorMessage: (x) => x,
errorStack: (x) => x,
}
}
}