Issue
Using Boolean (object wrapper) instead of boolean (primitive type) in type definitions, which violates TypeScript best practices.
Location
lib/types.ts - Lines 27, 36, 38
Why This Matters
- Type Safety:
Boolean accepts Boolean object wrappers which can cause unexpected behavior
- Truthiness Bug:
new Boolean(false) is truthy in conditionals, even though it wraps false
- Performance: Primitive types are more efficient than object wrappers
- Best Practice: TypeScript style guide recommends lowercase primitive types
Solution
Replace all instances of Boolean with boolean:
Fix Applied
All three occurrences have been changed from Boolean to boolean in the TestCase and TestCaseResult type definitions.
Issue
Using
Boolean(object wrapper) instead ofboolean(primitive type) in type definitions, which violates TypeScript best practices.Location
lib/types.ts- Lines 27, 36, 38Why This Matters
Booleanaccepts Boolean object wrappers which can cause unexpected behaviornew Boolean(false)is truthy in conditionals, even though it wraps falseSolution
Replace all instances of
Booleanwithboolean:Fix Applied
All three occurrences have been changed from
Booleantobooleanin theTestCaseandTestCaseResulttype definitions.