• 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

42.86
/packages/game-engine/src/engine/tasks/utils/createStartResearchTask.ts
1
import { Types } from 'mongoose'
2

3
import {
4✔
4
  ITask,
5
  PENDING_TASK_STATUS,
6
  START_RESEARCH_TASK_TYPE,
7
  StartResearchTaskType
8
} from '../../../models/TaskModel'
9
import getSecond from '../../../helpers/getSecond'
4✔
10

11
// TODO: add create BASE task
12
function createStartResearchTask(
13
  universeId: Types.ObjectId,
14
  playerId: Types.ObjectId,
15
  researchId: Types.ObjectId,
16
  executeTaskAt?: number
17
): ITask<StartResearchTaskType> {
NEW
18
  const startResearchTask: ITask<StartResearchTaskType> = {
×
19
    type: START_RESEARCH_TASK_TYPE,
20
    universe: universeId,
21
    data: {
22
      player: playerId,
23
      research: researchId
24
    },
25

26
    status: PENDING_TASK_STATUS,
27
    isCancellable: false,
28

29
    executeTaskAt: executeTaskAt ? getSecond(executeTaskAt) : null,
×
30
    processedAt: null,
31
    processingDuration: null,
32

33
    history: [
34
      {
35
        taskStatus: PENDING_TASK_STATUS,
36
        updatedAt: new Date().getTime()
37
      }
38
    ],
39

40
    errorDetails: null
41
  }
42

NEW
43
  return startResearchTask
×
44
}
45

46
export default createStartResearchTask
4✔
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