From da25b30992507f95c94b3a29ef52b215ba556de7 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Thu, 11 Mar 2021 16:22:12 +0100 Subject: [PATCH] chore: cleanup --- packages/webpack5/scripts/jest.copyRules.ts | 3 ++- packages/webpack5/scripts/jest.globals.d.ts | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/webpack5/scripts/jest.copyRules.ts b/packages/webpack5/scripts/jest.copyRules.ts index 3699686ea..672d195b8 100644 --- a/packages/webpack5/scripts/jest.copyRules.ts +++ b/packages/webpack5/scripts/jest.copyRules.ts @@ -1,6 +1,7 @@ -import { copyRules } from '../src/helpers/copyRules'; +import { copyRules, additionalCopyRules } from '../src/helpers/copyRules'; afterEach(() => { // Clear copy rules copyRules.clear(); + additionalCopyRules.length = 0 }); diff --git a/packages/webpack5/scripts/jest.globals.d.ts b/packages/webpack5/scripts/jest.globals.d.ts index 07e2a0691..ede612063 100644 --- a/packages/webpack5/scripts/jest.globals.d.ts +++ b/packages/webpack5/scripts/jest.globals.d.ts @@ -6,7 +6,3 @@ declare namespace jest { toHaveBeenPrinted(): R; } } - -declare global { - function mockFile(path: string, content: string); -}