MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / mockThread

Function mockThread

packages/core/mock.ts:121–133  ·  view source on GitHub ↗
(
	parent: Channel | ChannelWithFlags,
	override?: Omit<Partial<Channel>, 'parentId' | 'serverId'>,
)

Source from the content-addressed store, hash-verified

119}
120
121export function mockThread(
122 parent: Channel | ChannelWithFlags,
123 override?: Omit<Partial<Channel>, 'parentId' | 'serverId'>,
124) {
125 return getDefaultChannel({
126 id: getRandomId(),
127 name: 'test-thread',
128 serverId: parent.serverId,
129 type: ChannelType.PublicThread,
130 parentId: parent.id,
131 ...override,
132 });
133}
134
135export function mockUserServerSettings(
136 override: Partial<UserServerSettings> = {},

Callers 3

channel.test.tsFile · 0.90
seedOneFunction · 0.90
seedTwoFunction · 0.90

Calls 2

getDefaultChannelFunction · 0.90
getRandomIdFunction · 0.90

Tested by

no test coverage detected