MCPcopy
hub / github.com/jestjs/jest / testWithLinkedSyntheticModule

Function testWithLinkedSyntheticModule

packages/test-utils/src/ConditionalTest.ts:52–61  ·  view source on GitHub ↗
(
  ...args: Parameters<typeof test>
)

Source from the content-addressed store, hash-verified

50}
51
52export function testWithLinkedSyntheticModule(
53 ...args: Parameters<typeof test>
54): ReturnType<typeof test> {
55 const fn =
56 // @ts-expect-error - linkRequests is in Node v22.21+/v24.8+, not yet typed
57 typeof SourceTextModule?.prototype.linkRequests === 'function'
58 ? test
59 : test.skip;
60 return fn(...args);
61}
62
63export function onNodeVersions(
64 versionRange: string,

Callers 1

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected