MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / buildEventLog

Function buildEventLog

frontend/src/ts/test/events/data.ts:36–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34import { isFunboxActiveWithProperty } from "../funbox/active";
35
36export function buildEventLog(): EventLog {
37 const context = {
38 targetWords: [...TestWords.words.list],
39 mode: Config.mode,
40 mode2: getMode2(Config, getCurrentQuote()),
41 koreanStatus: koreanStatus,
42 bailedOut: bailedOut,
43 ...(Config.mode === "custom" && {
44 customTextLimitMode: CustomText.getLimit().mode,
45 customTextLimitValue: CustomText.getLimit().value,
46 }),
47 ...(Config.funbox.length !== 0 && {
48 isFunboxWithNospacePropertyActive: isFunboxActiveWithProperty("nospace"),
49 }),
50 };
51
52 return {
53 version: EVENT_LOG_VERSION,
54 events: getAllTestEvents(),
55 context,
56 };
57}
58
59let keydownEvents: KeydownEvent[] = [];
60let keyupEvents: KeyupEvent[] = [];

Callers 7

timerStepFunction · 0.90
restartFunction · 0.90
finishFunction · 0.90
getWordsListFunction · 0.90
refreshReplayFromEventsFunction · 0.90
goToNextWordFunction · 0.90
stats.spec.tsFile · 0.90

Calls 3

getMode2Function · 0.90
getAllTestEventsFunction · 0.85

Tested by

no test coverage detected