Skip to content

use-and ​

Require And instead of repeating the previous step keyword.

CategoryRecommendedSafe autofixDefault options
formattingnoyesnone

Reports and safely replaces a step keyword that repeats the previous one with And. * counts as And.

Configuration ​

json
{ "rules": { "use-and": "error" } }

Triggered by ​

text
Given a cart
Given a coupon

Released under the MIT License.