Showing 54 of 54 total issues
Function match
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private match( countIsNotCorrect: (count: number) => boolean, callCount: number, callCountName: string, callCountType: SpyCallCountType,
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
public greaterThan(minimumCallCount: number): FunctionSpyCallCountMatcher { return this.match( count => count <= minimumCallCount, minimumCallCount, "minimumCallCount",
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
public exactly(expectedCallCount: number): FunctionSpyCallCountMatcher { return this.match( count => count !== expectedCallCount, expectedCallCount, "expectedCallCount",
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
public lessThan(maximumCallCount: number): FunctionSpyCallCountMatcher { return this.match( count => count >= maximumCallCount, maximumCallCount, "maximumCallCount",
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
public anythingBut( unexpectedCallCount: number ): FunctionSpyCallCountMatcher { return this.match( count => count === unexpectedCallCount,
- Read upRead up
Avoid too many return
statements within this function. Open
return "failure";
Function GetTestCases
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function GetTestCases( caseArguments: | (() => IterableIterator<any> | Array<Array<any>>) | IterableIterator<any> | Array<Array<any>>
- Read upRead up
TODO found Open
//TODO: confirm the above is still true
- Exclude checks
TODO found Open
//TODO: figure out why running with vscode extension doesn't work here (double fork perhaps?)
- Exclude checks
TODO found Open
//TODO: convert this to useEffect however since this is deferred would
- Exclude checks
TODO found Open
// TODO: This functionality will be removed in 5.0.0 where
- Exclude checks
TODO found Open
//TODO: add error if no tsconfig resolved - this is not likely to be correct setup
- Exclude checks
TODO found Open
//TODO: tests already loaded here and are loaded again in `run.ts` could avoid double load for quicker running
- Exclude checks
TODO found Open
//TODO: this is likely inefficient and can be refactored to avoid loading the document multiple times
- Exclude checks