Commit d99b7bc
fix: Remove all conditional operators from expect calls
- Replaced boolean OR operators with array-based toContain assertions
- Used optional chaining to access devServer?.port
- Eliminated if statements and conditional logic from test
- Complies fully with jest/no-conditional-in-test rule
The cleaner approach uses expect([...]).toContain() for type validation
without any conditional operators or boolean logic.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 41fbc93 commit d99b7bc
1 file changed
Lines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
108 | 96 | | |
109 | 97 | | |
110 | 98 | | |
0 commit comments