MCPcopy Index your code
hub / github.com/coder/coder / currentUser

Function currentUser

site/e2e/helpers.ts:87–97  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

85}
86
87function currentUser(page: Page): LoginOptions {
88 const ctx = page.context();
89 // biome-ignore lint/suspicious/noExplicitAny: get the current user
90 const user = (ctx as any)[Symbol.for("currentUser")];
91
92 if (!user) {
93 throw new Error("page context does not have a user. did you call `login`?");
94 }
95
96 return user;
97}
98
99type CreateWorkspaceOptions = {
100 richParameters?: RichParameter[];

Callers 7

createWorkspaceFunction · 0.85
verifyParametersFunction · 0.85
stopWorkspaceFunction · 0.85
updateWorkspaceFunction · 0.85
openTerminalWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected