Features
Automatically indent JSON and Graphql steps inside the currently opened .feature file.
GitHub repository
Create an issue
Write a review
Disclaimer
This project extends the functionality of stale cucumber-json-formatter project.
Usage
- Open your
.feature file
- Open command list:
CMD + Shift + P
- Select
Format the current .feature file
Examples
Before
Scenario: Should format JSON
Given the following JSON:
"""
{
"hello": "world",
"object":{
"john": "doe"
}
}
"""
After
Scenario: Should format JSON
Given the following JSON:
"""
{
"hello": "world",
"object": {
"john": "doe"
}
}
"""
Before
Scenario: Should format GQL
Given the following GQL query:
"""
query getPotatoes($id: ID!) {
potatoes(id: $id) {
today {
price
}
}
}
"""
After
Scenario: Should format GQL
Given the following GQL query:
"""
query getPotatoes($id: ID!) {
potatoes(id: $id) {
today {
price
}
}
}
"""
| |