MCPcopy Create free account
hub / github.com/hashintel/hash / createTestOrg

Function createTestOrg

tests/hash-backend-integration/src/tests/util.ts:141–152  ·  view source on GitHub ↗
(
  context: ImpureGraphContext<false, true>,
  authentication: AuthenticationContext,
  shortNamePrefix: string,
)

Source from the content-addressed store, hash-verified

139};
140
141export const createTestOrg = async (
142 context: ImpureGraphContext<false, true>,
143 authentication: AuthenticationContext,
144 shortNamePrefix: string,
145) => {
146 const shortname = generateRandomShortname(shortNamePrefix);
147
148 return createOrg(context, authentication, {
149 name: "Test org",
150 shortname,
151 });
152};
153
154const afterHookTriggerTimeout = 5_000;
155

Callers 8

entity.test.tsFile · 0.90
org.test.tsFile · 0.90
user.test.tsFile · 0.90
data-type.test.tsFile · 0.90

Calls 2

createOrgFunction · 0.90
generateRandomShortnameFunction · 0.85

Tested by

no test coverage detected