File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -327,28 +327,3 @@ export function describeAtlas(name: number | string | Function | jest.FunctionLi
327327 describe ( name , fn ) ;
328328 } ) ;
329329}
330-
331- // Telemetry control functions for tests
332- export function disableTelemetry ( ) : void {
333- process . env . DO_NOT_TRACK = "1" ;
334- }
335-
336- export function enableTelemetry ( ) : void {
337- delete process . env . DO_NOT_TRACK ;
338- }
339-
340- export function withTelemetryDisabled ( fn : ( ) => Promise < void > | void ) : ( ) => Promise < void > {
341- return async ( ) => {
342- const originalValue = process . env . DO_NOT_TRACK ;
343- disableTelemetry ( ) ;
344- try {
345- await fn ( ) ;
346- } finally {
347- if ( originalValue === undefined ) {
348- delete process . env . DO_NOT_TRACK ;
349- } else {
350- process . env . DO_NOT_TRACK = originalValue ;
351- }
352- }
353- } ;
354- }
You can’t perform that action at this time.
0 commit comments