• 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

45.45
/packages/game-api-microservice/src/controllers/taskController.ts
1
import { FastifyReply, FastifyRequest } from 'fastify'
2
import StatusCodes from 'http-status-codes'
2✔
3

4
import handleErrorResponse from 'auth-microservice/dist/errors/handleErrorResponse'
2✔
5

6
import taskService from '../services/taskService'
2✔
7

8
async function getTask(request: FastifyRequest, response: FastifyReply) {
NEW
9
  try {
×
NEW
10
    const { taskId } = request.query as { taskId: string }
×
11

NEW
12
    const task = await taskService.getTask(taskId)
×
13

14
    // TODO: 404 if !task
15

NEW
16
    response.code(StatusCodes.OK).send(task)
×
17
  } catch (error) {
NEW
18
    const { code, body } = handleErrorResponse(error)
×
19

NEW
20
    return response.code(code).send(body)
×
21
  }
22
}
23

24
const taskController = {
2✔
25
  getTask
26
}
27

28
export default taskController
2✔
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