Skip to content

chore(deps): bump the testing group across 1 directory with 10 updates #5249

chore(deps): bump the testing group across 1 directory with 10 updates

chore(deps): bump the testing group across 1 directory with 10 updates #5249

Triggered via pull request May 12, 2026 23:41
Status Failure
Total duration 2m 44s
Artifacts

test-frontend.yaml

on: pull_request
Build | Front-end
1m 14s
Build | Front-end
Matrix: unit-test
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

19 errors
src/tests/main/db/init.spec.ts > Initialize database > Should apply migration if new available: front-end/src/main/db/init.ts#L21
TypeError: Cannot use `mockReturnValue` when called with `new`. Use `mockImplementation` with a `class` keyword instead. See https://vitest.dev/api/mock#class-support for more information. ❯ Module.initDatabase src/main/db/init.ts:21:14 ❯ src/tests/main/db/init.spec.ts:107:11
src/tests/main/db/init.spec.ts > Initialize database > Should apply first migration if database does not exists: front-end/src/main/db/init.ts#L21
TypeError: Cannot use `mockReturnValue` when called with `new`. Use `mockImplementation` with a `class` keyword instead. See https://vitest.dev/api/mock#class-support for more information. ❯ Module.initDatabase src/main/db/init.ts:21:14 ❯ src/tests/main/db/init.spec.ts:68:11
src/tests/main/index.spec.ts > Electron entry file > Should init mainWindow when second-instance fires and mainWindow is null: front-end/src/tests/main/index.spec.ts#L248
TypeError: Cannot use `mockReturnValue` when called with `new`. Use `mockImplementation` with a `class` keyword instead. See https://vitest.dev/api/mock#class-support for more information. ❯ src/tests/main/index.spec.ts:248:24
src/tests/main/index.spec.ts > Electron entry file > Should focus but not restore window on second-instance when not minimized: front-end/src/tests/main/index.spec.ts#L224
TypeError: Cannot use `mockReturnValue` when called with `new`. Use `mockImplementation` with a `class` keyword instead. See https://vitest.dev/api/mock#class-support for more information. ❯ src/tests/main/index.spec.ts:224:24
src/tests/main/index.spec.ts > Electron entry file > Should restore and focus window on second-instance event: front-end/src/tests/main/index.spec.ts#L202
TypeError: Cannot use `mockReturnValue` when called with `new`. Use `mockImplementation` with a `class` keyword instead. See https://vitest.dev/api/mock#class-support for more information. ❯ src/tests/main/index.spec.ts:202:24
src/tests/main/index.spec.ts > Electron entry file > Should call on headers received callback: front-end/src/tests/main/index.spec.ts#L186
AssertionError: expected undefined to be defined ❯ src/tests/main/index.spec.ts:186:39
src/tests/main/index.spec.ts > Electron entry file > Should init window on 'activate' event: front-end/src/tests/main/index.spec.ts#L78
AssertionError: expected undefined to be defined ❯ assertEventHandler src/tests/main/index.spec.ts:78:21 ❯ src/tests/main/index.spec.ts:176:11
src/tests/main/index.spec.ts > Electron entry file > Should set window to null on 'closed' event: front-end/src/tests/main/index.spec.ts#L165
TypeError: Cannot use `mockReturnValue` when called with `new`. Use `mockImplementation` with a `class` keyword instead. See https://vitest.dev/api/mock#class-support for more information. ❯ src/tests/main/index.spec.ts:165:24
src/tests/main/index.spec.ts > Electron entry file > Should handle deep link on 'open-url' event: front-end/src/tests/main/index.spec.ts#L161
AssertionError: expected "vi.fn()" to be called with arguments: [ Any<Object>, null, 'test-url' ] Number of calls: 0 ❯ src/tests/main/index.spec.ts:161:28
src/tests/main/index.spec.ts > Electron entry file > Should initialize the main process: front-end/src/tests/main/index.spec.ts#L96
TypeError: Cannot use `mockReturnValue` when called with `new`. Use `mockImplementation` with a `class` keyword instead. See https://vitest.dev/api/mock#class-support for more information. ❯ src/tests/main/index.spec.ts:96:56
Build | Front-end
Process completed with exit code 2.
Build | Front-end
Argument of type 'Mock<Procedure | Constructable>' is not assignable to parameter of type '(serverUrl: string, id: number) => Promise<boolean>'.
Build | Front-end
Argument of type 'Mock<Procedure | Constructable>' is not assignable to parameter of type '(serverUrl: string, id: number) => Promise<boolean>'.
Build | Front-end
Argument of type 'Mock<Procedure | Constructable>' is not assignable to parameter of type '(serverUrl: string, id: number) => Promise<boolean>'.
Build | Front-end
Argument of type 'Mock<Procedure | Constructable>' is not assignable to parameter of type '(serverUrl: string, id: number) => Promise<boolean>'.
Build | Front-end
Argument of type 'Mock<Procedure | Constructable>' is not assignable to parameter of type '(serverUrl: string, id: number) => Promise<boolean>'.
Build | Front-end
Argument of type 'Mock<Procedure | Constructable>' is not assignable to parameter of type '(serverUrl: string, id: number) => Promise<boolean>'.
Build | Front-end
Argument of type 'Mock<Procedure | Constructable>' is not assignable to parameter of type '(serverUrl: string, id: number) => Promise<boolean>'.
Build | Front-end
Type 'Mock<Procedure | Constructable>' is not assignable to type '() => Promise<void>'.