You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/vcr.js
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,24 @@ var argv = require('yargs')
22
22
.alias('r','record')
23
23
.describe('r','Record proxied responses to fixtures dir')
24
24
25
+
.boolean('proxyFailedResponses')
26
+
.alias('a','proxyFailedResponses')
27
+
.describe('a','Record and proxy response independently on status code, including 5xx, 4xx, 3xx. Nice for debug.')
28
+
25
29
.default('port',8100)
26
30
27
31
.example('-f ./fixtures -p https://ur.l/base -r','Load fixtures from directory, proxy not found fixtures to ur.l/base and success responses record back to fixtures directory')
console.log(`${chalk.magenta('[Stub server]')} proxy request to ${chalk.yellow(realApiBaseUrl+req.path)} ended up with ${chalk.red(`${proxyRes.statusCode}`)}`);
0 commit comments