fix: incorrectly counts running/in-progress requests

This commit is contained in:
jokj624
2025-08-04 18:44:23 +09:00
parent 0e81c14b96
commit 4cfc28cd73

View File

@@ -21,7 +21,7 @@ const getDisplayName = (fullPath, pathname, name = '') => {
};
const getTestStatus = (results) => {
if (!results || !results.length) return 'pass';
if (!results || !results.length) return 'running';
const failed = results.filter((result) => result.status === 'fail');
return failed.length ? 'fail' : 'pass';
};