codeceptjs/CodeceptJS

[feature-request] REST helper rejectOnError config option

Open

#1293 aperta il 30 ott 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (725 fork)batch import
RESTenhancementgood first issue

Metriche repository

Star
 (3956 star)
Metriche merge PR
 (Merge medio 11g 16h) (21 PR mergiate in 30 g)

Descrizione

Just that. How do you feel about a config option for the REST helper to make the promises reject whenever there is an error response, ex. status codes 4XX, 5XX, etc? (I personally think it should be the default behaviour)

I could create a pull request for this, as I have implemented it already on a custom helper on the project I'm working on.

Guida contributor