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

Add JSON payload parser support in step-definition #59

Merged
merged 1 commit into from
May 12, 2023

Conversation

micaelbergeron
Copy link
Collaborator

@micaelbergeron micaelbergeron commented May 12, 2023

This change enabled step definitions to declare a parsed payload

Given('…', (...args) => { … }, { parser: 'json' })

This will remove the need to JSON.parse in every stepdef and comes with a JSON5 parser for our human fingers.

src/steps/constructor.ts Outdated Show resolved Hide resolved
This change enabled step definitions to declare a parsed payload
Given('…', (...args) => { … }, { parser: 'json' | 'json5' })

This will remove the need to JSON.parse in every step-def.
@micaelbergeron micaelbergeron merged commit dc8cf13 into master May 12, 2023
1 check passed
@micaelbergeron micaelbergeron deleted the add/payload-parser branch May 12, 2023 13:03
@micaelbergeron micaelbergeron restored the add/payload-parser branch June 20, 2023 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants