MCPcopy Create free account
hub / github.com/denoland/std / describe

Function describe

testing/bdd.ts:1257–1269  ·  view source on GitHub ↗
(
  ...args: DescribeArgs<T>
)

Source from the content-addressed store, hash-verified

1255 * instead.
1256 */
1257export function describe<T>(
1258 ...args: DescribeArgs<T>
1259): TestSuite<T> {
1260 if (TestSuiteInternal.runningCount > 0) {
1261 throw new Error(
1262 "Cannot register new test suites after already registered test cases start running",
1263 );
1264 }
1265 const options = describeDefinition(...args);
1266 if (!TestSuiteInternal.started) TestSuiteInternal.started = true;
1267 const { symbol } = new TestSuiteInternal(options);
1268 return { symbol };
1269}
1270
1271/**
1272 * Only execute this test suite.

Calls 1

describeDefinitionFunction · 0.85

Tested by

no test coverage detected