Skip to content

test(ui): consolidate similar tests via table-driven it.each (Sonar S5976) - #482

Merged
thomasluizon merged 2 commits into
mainfrom
chore/sonar-s5976-parameterize-tests
Jul 13, 2026
Merged

thomasluizon merged 2 commits into
mainfrom
chore/sonar-s5976-parameterize-tests

Merge branch 'main' into chore/sonar-s5976-parameterize-tests

e43a55c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 13, 2026 in 48s

Annotations

Check warning on line 104 in apps/mobile/__tests__/components/chat/action-chips.test.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(findPressableByType(tree.root)).toHaveLength(expected)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=thomasluizon_orbit-ui-mobile&issues=AZ9bRXUAwlJpyAD2kbcD&open=AZ9bRXUAwlJpyAD2kbcD&pullRequest=482