MCPcopy
hub / github.com/TypeStrong/ts-node / assertOrderingForDeclaringHook

Function assertOrderingForDeclaringHook

src/test/testlib.ts:179–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 suiteOrTestDeclared = true;
178 }
179 function assertOrderingForDeclaringHook() {
180 if (suiteOrTestDeclared) {
181 throw new Error(
182 'Hooks must be declared before declaring sub-suites or tests'
183 );
184 }
185 hookDeclared = true;
186 }
187 function assertOrderingForDeclaringSkipUnless() {
188 if (suiteOrTestDeclared) {
189 throw new Error(

Callers 1

createTestInterfaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…