File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/utils/src/lib/profiler Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1055,6 +1055,8 @@ describe('NodejsProfiler', () => {
10551055 performance . clearMeasures ( ) ;
10561056 // eslint-disable-next-line functional/immutable-data
10571057 delete process . env . CP_PROFILER_DEBUG ;
1058+ // eslint-disable-next-line functional/immutable-data
1059+ delete process . env . CP_PROFILING ;
10581060 } ) ;
10591061
10601062 afterEach ( ( ) => {
@@ -1171,6 +1173,8 @@ describe('NodejsProfiler', () => {
11711173 it ( 'should create transition marker when debug enabled via env var' , ( ) => {
11721174 // eslint-disable-next-line functional/immutable-data
11731175 process . env . CP_PROFILER_DEBUG = 'true' ;
1176+ // eslint-disable-next-line functional/immutable-data
1177+ delete process . env . CP_PROFILING ;
11741178
11751179 const { profiler } = getNodejsProfiler ( ) ;
11761180
@@ -1353,6 +1357,8 @@ describe('NodejsProfiler', () => {
13531357
13541358 describe ( 'base Profiler behavior' , ( ) => {
13551359 it ( 'should always be active in base profiler' , ( ) => {
1360+ // eslint-disable-next-line functional/immutable-data
1361+ delete process . env . CP_PROFILING ;
13561362 const profiler = new Profiler ( {
13571363 prefix : 'cp' ,
13581364 track : 'test-track' ,
You can’t perform that action at this time.
0 commit comments