See the past discussion and examples section but this issue will track the refactoring and removal of the manual mocks from the test suite. While useful at the beginning when the codebase and test amount was small, they have not scaled well and it is apparent we need a better tool.
https://github.com/ryanluker/vscode-coverage-gutters/pull/320#discussion_r650550183 @mattseddon FYI from our discussion in the other PR, I will work on plugging away at fixing and refactoring the existing manual mocks.
Background
See the past discussion and examples section but this issue will track the refactoring and removal of the manual mocks from the test suite. While useful at the beginning when the codebase and test amount was small, they have not scaled well and it is apparent we need a better tool.
Prep Work
fakeConfig
into an applicable sinon mockassert.equal
Refactor existing manual mocks
test\coverage-system\coverage.test.ts
test\coverage-system\coverageservice.test.ts
test\extension\config.test.ts
test\files\coverageparser.test.ts
test\files\filesloader.test.ts
Past discussions and examples around mocking
https://github.com/ryanluker/vscode-coverage-gutters/pull/270 https://github.com/ryanluker/vscode-coverage-gutters/pull/218 https://github.com/ryanluker/vscode-coverage-gutters/issues/198