Skip to content

Commit

Permalink
Update packages/utils/core-utils/spec/package-manager.spec.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Cui <[email protected]>
  • Loading branch information
erickzhao and BlackHole1 authored Feb 5, 2025
1 parent 336662c commit 33454a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/utils/core-utils/spec/package-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ vi.mock('find-up', async (importOriginal) => {

describe('package-manager', () => {
describe('npm_config_user_agent', () => {
let originalUa: string | undefined;
beforeAll(() => {
originalUa = process.env.npm_config_user_agent;
});
afterAll(() => {
process.env.npm_config_user_agent = originalUa;
const originalUa = process.env.npm_config_user_agent;

return () => {
process.env.npm_config_user_agent = originalUa;
}
});

it.each([
Expand Down

0 comments on commit 33454a5

Please sign in to comment.