Skip to content

chore: turn on no-explicit-any rule for test files

Andrei Zubov requested to merge azubov/1466-improve-mock-typings into main

Description

This MR is a follow up to introducing common eslint configuration to typescript codebase and focuses on enabling no-explicit-any rule for tests.

The fixes were mostly related to using createFakePartial helper function to disguise a partial mock objects for expected types, or providing proper types.

In few complex cases where function type overloads were not picked up, or when a mock function had a narrower argument type than an original function, the rule was disabled on a per-line basis.

Related Issues

Resolves #1466 (closed)

How has this been tested?

Screenshots (if appropriate)

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes
Edited by Andrei Zubov

Merge request reports

Loading