Skip to content

Hardening: Improve current set of tests [unit] #475

@brunomenezes

Description

@brunomenezes

🙂 Expected behavior

Failure results in some of the tests from builder.test.ts.

🫠 Actual behavior

All of them are passing. But it is due to how the component tested works and the assertions made. The only thing highlighting the problem is the IDE when you open the file.

🧪 Minimal test case

  1. Have an IDE that has a TS language server running,
  2. Open the file on apps/cli/tests/unit/compose/builder.test.ts,

You should be able to see the red "squiggles". Types do not match.

✔️ Possible solutions

  • Fix the tests following the types
  • Add strict typing checking to bring build and ci to fail/halt
  • Overhaul the types in the src/types/compose.ts by removing properties that are not used or do not make sense anymore, e.g., Models.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is neededquestionFurther information is requested

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions