testcafe-hammerhead
Advanced tools
Comparing version 24.7.1 to 24.7.2
@@ -58,2 +58,3 @@ "use strict"; | ||
response.statusCode = 500; | ||
mock.hasError = true; | ||
mock.error = err; | ||
@@ -60,0 +61,0 @@ response.body = Buffer.from(ERROR_MOCKING_PAGE_CONTENT); |
@@ -19,2 +19,3 @@ "use strict"; | ||
this.error = null; | ||
this.hasError = false; | ||
if (headers) | ||
@@ -21,0 +22,0 @@ this.headers = (0, lowercase_header_names_1.default)(headers); |
@@ -161,3 +161,3 @@ "use strict"; | ||
async function handleRequestMockingErrorIfNecessary(ctx) { | ||
if (ctx.destRes.statusCode !== 500) | ||
if (!ctx.mock.hasError) | ||
return; | ||
@@ -164,0 +164,0 @@ const targetRule = ctx.requestFilterRules[0]; |
{ | ||
"name": "testcafe-hammerhead", | ||
"description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).", | ||
"version": "24.7.1", | ||
"version": "24.7.2", | ||
"homepage": "https://github.com/DevExpress/testcafe-hammerhead", | ||
@@ -6,0 +6,0 @@ "bugs": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2414217
40475