better window management #46
Annotations
5 errors and 1 warning
tests/unit/commander.test.ts > Chat Window command:
src/automations/commander.ts#L176
Error: [vitest] No "restoreWindows" export is defined on the "../../src/main/window.ts" 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("../../src/main/window.ts", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Commander.execCommand src/automations/commander.ts:176:18
❯ tests/unit/commander.test.ts:99:3
|
tests/unit/commander.test.ts > Paste in-place command:
src/automations/commander.ts#L176
Error: [vitest] No "restoreWindows" export is defined on the "../../src/main/window.ts" 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("../../src/main/window.ts", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Commander.execCommand src/automations/commander.ts:176:18
❯ tests/unit/commander.test.ts:121:3
|
tests/unit/commander.test.ts > Paste below command:
src/automations/commander.ts#L176
Error: [vitest] No "restoreWindows" export is defined on the "../../src/main/window.ts" 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("../../src/main/window.ts", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Commander.execCommand src/automations/commander.ts:176:18
❯ tests/unit/commander.test.ts:136:3
|
tests/unit/commander.test.ts > Copy to clipboard command:
src/automations/commander.ts#L176
Error: [vitest] No "restoreWindows" export is defined on the "../../src/main/window.ts" 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("../../src/main/window.ts", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Commander.execCommand src/automations/commander.ts:176:18
❯ tests/unit/commander.test.ts:151:3
|
build
Process completed with exit code 1.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: JesseTG/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|