codeceptjs/CodeceptJS

[feature-request] REST helper rejectOnError config option

オープン

#1,293 opened on 2018/10/30

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (725 件のフォーク)batch import
RESTenhancementgood first issue

Repository metrics

Stars
 (3,956 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド