• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atlp-rwanda / knights-ecomm-fe / 9783673362

03 Jul 2024 07:21PM UTC coverage: 85.074% (-2.7%) from 87.754%
9783673362

push

github

Calebgisa72
feat-wishlist-management

379 of 544 branches covered (69.67%)

Branch coverage included in aggregate %.

208 of 396 new or added lines in 13 files covered. (52.53%)

18 existing lines in 1 file now uncovered.

4785 of 5526 relevant lines covered (86.59%)

7.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/src/utils/errorHandler.ts
1
import axios from 'axios';
1✔
2
import toast from 'react-hot-toast';
1✔
3

1✔
4
const handleError = (error: any) => {
1✔
NEW
5
  axios.isAxiosError(error)
×
NEW
6
    ? toast.error(error.response?.data?.message || 'Server Down. Try again later!')
×
NEW
7
    : toast.error((error as Error).message);
×
NEW
8
};
×
9

1✔
10
export default handleError;
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc