diff --git a/packages/cli/src/lib/__tests__/updateCheck.test.js b/packages/cli/src/lib/__tests__/updateCheck.test.js index 5882522aaadc..2370a395bb52 100644 --- a/packages/cli/src/lib/__tests__/updateCheck.test.js +++ b/packages/cli/src/lib/__tests__/updateCheck.test.js @@ -67,7 +67,7 @@ describe('Update is not available (1.0.0 -> 1.0.0)', () => { afterEach(() => { fs.__setMockFiles({}) - jest.restoreAllMocks() + jest.clearAllMocks() }) it('Produces the correct updateData.json file', async () => { @@ -142,7 +142,7 @@ describe('Update is available (1.0.0 -> 2.0.0)', () => { afterEach(() => { fs.__setMockFiles({}) - jest.restoreAllMocks() + jest.clearAllMocks() }) it('Produces the correct updateData.json file', async () => { @@ -217,7 +217,7 @@ describe('Update is available with rc tag (1.0.0-rc.1 -> 1.0.1-rc.58)', () => { afterEach(() => { fs.__setMockFiles({}) - jest.restoreAllMocks() + jest.clearAllMocks() }) it('Produces the correct updateData.json file', async () => {