feat(fetch): support file URLs via opt-in dispatcher interceptor #784
Annotations
2 errors and 10 notices
|
Test interceptors
Process completed with exit code 1.
|
|
Test interceptors:
test\interceptors\file.js#L68
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /not allowed by file interceptor/. Input:
'TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute'
at async TestContext.<anonymous> (D:\a\undici\undici\test\interceptors\file.js:68:3)
at async Test.run (node:internal/test_runner/test:1125:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:787:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute
at getPathFromURLWin32 (node:internal/url:1484:11)
at fileURLToPath (node:internal/url:1609:35)
at D:\a\undici\undici\lib\interceptor\file.js:124:24
at fileInterceptorDispatch (D:\a\undici\undici\lib\interceptor\file.js:174:9)
at D:\a\undici\undici\test\interceptors\file.js:69:5
at new Promise (<anonymous>)
at TestContext.<anonymous> (D:\a\undici\undici\test\interceptors\file.js:68:24)
at Test.runInAsyncScope (node:async_hooks:228:14)
at Test.run (node:internal/test_runner/test:1118:25)
at Test.processPendingSubtests (node:internal/test_runner/test:787:18),
expected: /not allowed by file interceptor/,
operator: 'rejects',
diff: 'simple'
}
|
|
Test interceptors
Total Tests: 243
Suites 📂: 6
Passed ✅: 231
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 11
Todo 📝: 0
Duration 🕐: 13124.261ms
|
|
Test cookies
Total Tests: 76
Suites 📂: 8
Passed ✅: 76
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 2402.974ms
|
|
Test cache-interceptor with sqlite
Total Tests: 48
Suites 📂: 5
Passed ✅: 48
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 394.490ms
|
|
Test cache
Total Tests: 4
Suites 📂: 0
Passed ✅: 4
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 676.248ms
|
|
Test node-fetch
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3518.306ms
|
|
Test fetch
Total Tests: 42
Suites 📂: 0
Passed ✅: 42
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 2182.466ms
|
|
Test fetch
Total Tests: 28
Suites 📂: 5
Passed ✅: 28
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 562.765ms
|
|
Test fetch
Total Tests: 455
Suites 📂: 22
Passed ✅: 455
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 66930.337ms
|
|
Test node-test
Total Tests: 220
Suites 📂: 3
Passed ✅: 213
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 7
Todo 📝: 0
Duration 🕐: 5629.009ms
|
|
Test unit
Total Tests: 1277
Suites 📂: 124
Passed ✅: 1273
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 67076.836ms
|
Loading