From 5a70006d3fb53bd9364fffd4fdbeee8198cd79a3 Mon Sep 17 00:00:00 2001 From: Peter Hellstrand Date: Fri, 16 Aug 2024 14:07:19 +0200 Subject: [PATCH] test(ffe-modals-react): fix mock --- .../src/__mocks__/{dialog-polyfill.ts => dialog-polyfill.ts} | 0 packages/ffe-modals-react/tsconfig.cjs.json | 2 +- packages/ffe-modals-react/tsconfig.esm.json | 2 +- packages/ffe-modals-react/tsconfig.types.json | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename packages/ffe-modals-react/src/__mocks__/{dialog-polyfill.ts => dialog-polyfill.ts} (100%) diff --git a/packages/ffe-modals-react/src/__mocks__/dialog-polyfill.ts b/packages/ffe-modals-react/src/__mocks__/dialog-polyfill.ts similarity index 100% rename from packages/ffe-modals-react/src/__mocks__/dialog-polyfill.ts rename to packages/ffe-modals-react/src/__mocks__/dialog-polyfill.ts diff --git a/packages/ffe-modals-react/tsconfig.cjs.json b/packages/ffe-modals-react/tsconfig.cjs.json index 6579fd2246..42433b5ddc 100644 --- a/packages/ffe-modals-react/tsconfig.cjs.json +++ b/packages/ffe-modals-react/tsconfig.cjs.json @@ -5,5 +5,5 @@ "module": "commonjs" }, "include": ["src/**/*"], - "exclude": ["node_modules", "src/**/*.spec.ts*"] + "exclude": ["node_modules", "src/**/*.spec.ts*", "src/__mocks__"] } diff --git a/packages/ffe-modals-react/tsconfig.esm.json b/packages/ffe-modals-react/tsconfig.esm.json index 8e577796bf..de4c4dc2c6 100644 --- a/packages/ffe-modals-react/tsconfig.esm.json +++ b/packages/ffe-modals-react/tsconfig.esm.json @@ -5,5 +5,5 @@ "module": "esnext" }, "include": ["src/**/*"], - "exclude": ["node_modules", "src/**/*.spec.ts*"] + "exclude": ["node_modules", "src/**/*.spec.ts*", "src/__mocks__"] } diff --git a/packages/ffe-modals-react/tsconfig.types.json b/packages/ffe-modals-react/tsconfig.types.json index 3499c0be03..ae05f4c9c8 100644 --- a/packages/ffe-modals-react/tsconfig.types.json +++ b/packages/ffe-modals-react/tsconfig.types.json @@ -6,5 +6,5 @@ "emitDeclarationOnly": true }, "include": ["src/**/*"], - "exclude": ["node_modules", "src/**/*.spec.ts*"] + "exclude": ["node_modules", "src/**/*.spec.ts*", "src/__mocks__"] }