diff --git a/lighthouse-core/test/config/config-helpers-test.js b/lighthouse-core/test/config/config-helpers-test.js index fc23db1673c3..52ad657b95bc 100644 --- a/lighthouse-core/test/config/config-helpers-test.js +++ b/lighthouse-core/test/config/config-helpers-test.js @@ -28,9 +28,10 @@ import {createCommonjsRefs} from '../../scripts/esm-utils.js'; const {require, __dirname} = createCommonjsRefs(import.meta); -jest.mock('process', () => ({ - cwd: () => jest.fn(), -})); +const originalCwd = process.cwd; +afterAll(() => { + process.cwd = originalCwd; +}); describe('.mergeConfigFragment', () => { it('should merge properties in like Object.assign', () => {