Skip to content

Commit 94043a4

Browse files
committed
Add comprehensive test harness with env var support
Add test/test_proxy_headers.js with full feature parity to Python: - PROXY_URL, TEST_URL for basic configuration - PROXY_HEADER for checking specific response header - SEND_PROXY_HEADER, SEND_PROXY_VALUE for sending headers to proxy - -v/--verbose, -l/--list, -h/--help flags - Tests for all supported libraries: core, axios, node-fetch, got, undici, superagent Made-with: Cursor
1 parent ce71e79 commit 94043a4

3 files changed

Lines changed: 481 additions & 177 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"./superagent": "./lib/superagent-proxy.js"
1414
},
1515
"scripts": {
16-
"test": "node test/run_tests.js",
16+
"test": "node test/test_proxy_headers.js",
17+
"test:verbose": "node test/test_proxy_headers.js -v",
1718
"lint": "eslint lib test"
1819
},
1920
"keywords": [

test/run_tests.js

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)