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

kobotoolbox / kpi / 16875956630
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1452-new_action
DEFAULT BRANCH: master
Ran 11 Aug 2025 09:57AM UTC
Jobs 2
Files 665
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Aug 2025 09:20AM UTC coverage: 81.413% (-0.01%) from 81.423%
16875956630

push

github

web-flow
fix(frontend): type error in useServiceUsageQuery.ts (#6081)

### 💭 Notes

Without the change I was getting this error:

```ERROR in ./jsapp/js/account/usage/useServiceUsageQuery.ts:135:3
TS2322: Type 'UseQueryResult<UsageState | undefined, Error>' is not assignable to type 'UseQueryResult<UsageState>'.
  Type 'QueryObserverRefetchErrorResult<UsageState | undefined, Error>' is not assignable to type 'UseQueryResult<UsageState>'.
    Type 'QueryObserverRefetchErrorResult<UsageState | undefined, Error>' is not assignable to type 'QueryObserverRefetchErrorResult<UsageState, Error>'.
      Type 'UsageState | undefined' is not assignable to type 'UsageState'.
        Type 'undefined' is not assignable to type 'UsageState'.
    133 |   }, [params?.shouldForceInvalidation])
    134 |
  > 135 |   return useQuery({
        |   ^^^^^^
    136 |     queryKey: [QueryKeys.serviceUsage, organizationData?.id],
    137 |     queryFn: () => loadUsage(organizationData?.id || null),
    138 |     // A low stale time is needed to avoid calling the API twice on some situations
```

I remember I was getting the same error after bumping some react-query
related dependency. But now I started getting this on `main` without the
bump.

6439 of 10121 branches covered (63.62%)

24423 of 29999 relevant lines covered (81.41%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16875956630.1 11 Aug 2025 09:57AM UTC 665
79.0
2 16875956630.2 11 Aug 2025 10:00AM UTC 665
81.39
Source Files on build 16875956630
  • Tree
  • List 665
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 47bc86f7 on github
  • Prev Build on main (#16875104273)
  • Next Build on main (#16884783455)
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

© 2025 Coveralls, Inc