Running Copilot coding agent #31
Annotations
3 errors
|
tests/unit/proxy.test.js > Proxy Support > Config > should set PROXY_ENABLED to false when PROXY_URL is empty:
tests/unit/proxy.test.js#L128
AssertionError: expected true to be false // Object.is equality
- Expected
+ Received
- false
+ true
❯ tests/unit/proxy.test.js:128:36
|
|
tests/unit/rpcMonitor.test.js:
fetchUtil.js#L13
Error: [vitest] No "PROXY_ENABLED" export is defined on the "../../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ fetchUtil.js:13:5
❯ rpcMonitor.js:3:31
|
|
tests/unit/dataService.test.js:
fetchUtil.js#L13
Error: [vitest] No "PROXY_ENABLED" export is defined on the "../../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ fetchUtil.js:13:5
❯ dataService.js:2:31
|