diff --git a/x-pack/plugins/fleet/server/services/epm/registry/index.test.ts b/x-pack/plugins/fleet/server/services/epm/registry/index.test.ts index 49dfb402b3b75..6504b6548f078 100644 --- a/x-pack/plugins/fleet/server/services/epm/registry/index.test.ts +++ b/x-pack/plugins/fleet/server/services/epm/registry/index.test.ts @@ -158,9 +158,7 @@ describe('fetch package', () => { }); describe('getLicensePath', () => { - beforeEach(() => { - MockArchive.getPathParts = jest.requireActual('../archive').getPathParts; - }); + MockArchive.getPathParts = jest.requireActual('../archive').getPathParts; it('returns first license path if found', () => { const path = getLicensePath([