Enhance test infrastructure and add comprehensive WebSocket and security mocking

- Updated test suite with more robust mocking for WebSocket and security modules
- Expanded test coverage for performance monitoring and optimization utilities
- Added detailed type definitions for WebSocket and test response interfaces
- Improved error handling and type safety in test scenarios
- Updated package dependencies to include WebSocket and security-related libraries
This commit is contained in:
jango-blockchained
2025-01-30 09:43:19 +01:00
parent f5f756f71e
commit b3fa5f729e
6 changed files with 295 additions and 86 deletions

View File

@@ -23,30 +23,30 @@
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">45.71% </span>
<span class="strong">37.98% </span>
<span class="quiet">Statements</span>
<span class='fraction'>128/280</span>
<span class='fraction'>128/337</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">40.19% </span>
<span class="strong">33.06% </span>
<span class="quiet">Branches</span>
<span class='fraction'>41/102</span>
<span class='fraction'>41/124</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">40.74% </span>
<span class="strong">37.5% </span>
<span class="quiet">Functions</span>
<span class='fraction'>33/81</span>
<span class='fraction'>33/88</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">46.29% </span>
<span class="strong">38.34% </span>
<span class="quiet">Lines</span>
<span class='fraction'>125/270</span>
<span class='fraction'>125/326</span>
</div>
@@ -153,6 +153,21 @@
<td data-value="60" class="abs low">0/60</td>
</tr>
<tr>
<td class="file low" data-value="src/security"><a href="src/security/index.html">src/security</a></td>
<td data-value="0" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="57" class="abs low">0/57</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="22" class="abs low">0/22</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="7" class="abs low">0/7</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="56" class="abs low">0/56</td>
</tr>
<tr>
<td class="file low" data-value="src/websocket"><a href="src/websocket/index.html">src/websocket</a></td>
<td data-value="0" class="pic low">
@@ -176,7 +191,7 @@
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2025-01-30T08:26:17.384Z
at 2025-01-30T08:31:24.499Z
</div>
<script src="prettify.js"></script>
<script>