refactor(core): Remove unused disable directives from backend packages (#10826)

This commit is contained in:
Iván Ovejero
2024-09-16 10:58:23 +02:00
committed by GitHub
parent 460fe14ae1
commit 0e61d7c2e8
3 changed files with 1 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ import type { SourceControlledFile } from '../types/source-controlled-file';
// https://github.com/jestjs/jest/issues/4715
function deepSpyOn<O extends object, M extends keyof O>(object: O, methodName: M) {
const spy = jest.fn();
// eslint-disable-next-line @typescript-eslint/ban-types
const originalMethod = object[methodName];
if (typeof originalMethod !== 'function') {