added vitest #11
Annotations
10 errors
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > "http" module > should emit an "error" event on the `http.ClientRequest` if the proxy does not exist:
src/__test__/proxyAgent.test.ts#L39
Error: ENOENT: no such file or directory, open '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key'
❯ src/__test__/proxyAgent.test.ts:39:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key' }
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > "http" module > should receive the 407 authorization code on the `http.ClientResponse`:
src/__test__/proxyAgent.test.ts#L58
TypeError: Cannot read properties of undefined (reading 'close')
❯ src/__test__/proxyAgent.test.ts:58:15
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > "http" module > should receive the 407 authorization code on the `http.ClientResponse`:
src/__test__/proxyAgent.test.ts#L39
Error: ENOENT: no such file or directory, open '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key'
❯ src/__test__/proxyAgent.test.ts:39:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key' }
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > "http" module > should work over an HTTPS proxy:
src/__test__/proxyAgent.test.ts#L58
TypeError: Cannot read properties of undefined (reading 'close')
❯ src/__test__/proxyAgent.test.ts:58:15
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > "http" module > should work over an HTTPS proxy:
src/__test__/proxyAgent.test.ts#L39
Error: ENOENT: no such file or directory, open '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key'
❯ src/__test__/proxyAgent.test.ts:39:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key' }
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > constructor > should accept a direct argument:
src/__test__/proxyAgent.test.ts#L58
TypeError: Cannot read properties of undefined (reading 'close')
❯ src/__test__/proxyAgent.test.ts:58:15
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > constructor > should accept a direct argument:
src/__test__/proxyAgent.test.ts#L39
Error: ENOENT: no such file or directory, open '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key'
❯ src/__test__/proxyAgent.test.ts:39:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key' }
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > constructor > should accept a "string" proxy argument:
src/__test__/proxyAgent.test.ts#L58
TypeError: Cannot read properties of undefined (reading 'close')
❯ src/__test__/proxyAgent.test.ts:58:15
|
|
lib/esm/__test__/proxyAgent.test.js > HttpsProxyAgent > constructor > should accept a "string" proxy argument:
src/__test__/proxyAgent.test.ts#L39
Error: ENOENT: no such file or directory, open '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key'
❯ src/__test__/proxyAgent.test.ts:39:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/https-proxy-socket/https-proxy-socket/lib/esm/__test__/../../fixtures/ssl-cert-snakeoil.key' }
|
|
lib/cjs/__test__/proxyAgent.test.js:
src/__test__/proxyAgent.test.ts#L6
Error: Vitest cannot be imported in a CommonJS module using require(). Please use "import" instead.
If you are using "import" in your source code, then it's possible it was bundled into require() automatically by your bundler. In that case, do not bundle CommonJS output since it will never work with Vitest, or use dynamic import() which is available in all CommonJS modules.
❯ Object.<anonymous> node_modules/.pnpm/vitest@3.2.4_@types+node@22.18.8_yaml@2.8.1/node_modules/vitest/index.cjs:1:7
❯ src/__test__/proxyAgent.test.ts:6:1
|