Skip to content

Commit

Permalink
Eslint suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 15, 2025
1 parent 2296337 commit 57297f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/backend/test-utils/DriveBackedValue-stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function mockedDriveBackedValue(): MockedObject<
pathsToProcess: Array<MoveContext>;
}>
> {
// eslint-disable-next-line vitest/prefer-vi-mocked -- Acceptable as return value
return {
deleteValue: vi.fn(),
loadValue: vi.fn(),
Expand Down
1 change: 1 addition & 0 deletions tests/backend/test-utils/MoveState-stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { type MockedObject, vi } from "vitest";
import type { MoveState_ } from "../../../src/backend/utils/MoveState";

export function mockedMoveState(): MockedObject<MoveState_> {
// eslint-disable-next-line vitest/prefer-vi-mocked -- Acceptable as return value
return {
addPath: vi.fn(),
destroyState: vi.fn(),
Expand Down
1 change: 1 addition & 0 deletions tests/backend/test-utils/SafeDriveService-stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function mockedSafeDriveService<
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters -- No other way to pass F to vi.fn()
F extends DeepKeyof<SafeFile>,
>(): MockedObject<SafeDriveService_> {
// eslint-disable-next-line vitest/prefer-vi-mocked -- Acceptable as return value
return {
Comments: {
insert:
Expand Down

0 comments on commit 57297f6

Please sign in to comment.