Skip to content

Commit 13019da

Browse files
committed
refactor: wip tests
1 parent 00bef3e commit 13019da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/utils/src/lib/profiler/profiler.unit.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)