MCPcopy Index your code
hub / github.com/changesets/changesets / temporarilySilenceLogs

Function temporarilySilenceLogs

scripts/test-utils/src/index.ts:80–88  ·  view source on GitHub ↗
(testFn: () => Promise<void> | void)

Source from the content-addressed store, hash-verified

78
79export const temporarilySilenceLogs =
80 (testFn: () => Promise<void> | void) => async () => {
81 const silencer = createLogSilencer();
82 const dispose = silencer.setup();
83 try {
84 await testFn();
85 } finally {
86 dispose();
87 }
88 };
89
90let f = fixturez(__dirname);
91

Callers 3

index.test.tsFile · 0.90
index.test.tsFile · 0.90

Calls 1

createLogSilencerFunction · 0.85

Tested by

no test coverage detected