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

DaniSomoza / galactic-commander / 11940541664

20 Nov 2024 07:39PM UTC coverage: 65.587% (-31.2%) from 96.824%
11940541664

push

github

web-flow
Frontend initial implementation and player perks feature (#10)

* added vite react-ts template

* Add register and login pages

* Add initial frontend implementation

* Add first iteration of research queue

* first version of the research page

* added assets

* Added pirate research assets

* Added translation support

* updated planet images

* added first version of the bonus

181 of 418 branches covered (43.3%)

Branch coverage included in aggregate %.

532 of 983 new or added lines in 110 files covered. (54.12%)

8 existing lines in 4 files now uncovered.

1176 of 1651 relevant lines covered (71.23%)

4.75 hits per line

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

0.0
/packages/frontend/src/utils/waitTaskToStart.ts
1
import { getTask as getTaskEndpoint } from '../endpoints/game/taskEndpoints'
2

3
async function waitTaskToStart(taskId: string, customIntervalTime = 1_000) {
×
NEW
4
  return new Promise((resolve, reject) => {
×
NEW
5
    const intervalId = setInterval(async () => {
×
NEW
6
      try {
×
7
        const {
8
          data: { task }
NEW
9
        } = await getTaskEndpoint(taskId)
×
10

NEW
11
        if (task.status !== 'PENDING') {
×
NEW
12
          clearInterval(intervalId)
×
NEW
13
          resolve(task)
×
14
        }
15
      } catch (error) {
NEW
16
        clearInterval(intervalId)
×
NEW
17
        reject(error)
×
18
      }
19
    }, customIntervalTime)
20
  })
21
}
22

23
export default waitTaskToStart
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