Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bringing back v6/5 props #1732

Merged
merged 4 commits into from
Jul 17, 2021
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)
ludeknovy marked this conversation as resolved.
Show resolved Hide resolved

## [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,
}
}
}