fix(FN-1761): fix test lint with type-safe eslint-disable comments
- restart.integration.test.ts: add eslint-disable for Function/any types in mocks - child-process-worker.test.ts: add eslint-disable for Function[] in baseline arrays - Restore build to passing by avoiding overly strict type changes - All tests pass
This commit is contained in:
@@ -158,12 +158,12 @@ function getHandler<T = unknown>(
|
||||
return handler as (payload: unknown) => Promise<T>;
|
||||
}
|
||||
|
||||
type SignalListener = (...args: unknown[]) => void;
|
||||
|
||||
describe("child-process-worker", () => {
|
||||
const originalProcessSend = process.send;
|
||||
let sigtermBaseline: SignalListener[] = [];
|
||||
let sigintBaseline: SignalListener[] = [];
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- Test mock
|
||||
let sigtermBaseline: Function[] = [];
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- Test mock
|
||||
let sigintBaseline: Function[] = [];
|
||||
|
||||
beforeEach(() => {
|
||||
vi.resetModules();
|
||||
|
||||
Reference in New Issue
Block a user