codeceptjs/CodeceptJS

[feature-request] REST helper rejectOnError config option

开放

#1,293 创建于 2018年10月30日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (725 个派生)batch import
RESTenhancementgood first issue

仓库指标

星标
 (3,956 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南