From a9e67523fc6a1b2eceb5b2ec328bde41f9d5b1a2 Mon Sep 17 00:00:00 2001 From: d064310 Date: Fri, 10 May 2024 14:38:29 +0200 Subject: [PATCH] fix unit tests --- apps/assets-overview/jest.config.js | 2 +- apps/exampleapp/jest.config.js | 4 +++- apps/volta/jest.config.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/assets-overview/jest.config.js b/apps/assets-overview/jest.config.js index d16f3da9d..fd60a61f4 100644 --- a/apps/assets-overview/jest.config.js +++ b/apps/assets-overview/jest.config.js @@ -8,7 +8,7 @@ module.exports = { testEnvironment: "jsdom", setupFilesAfterEnv: ["/setupTests.js"], transformIgnorePatterns: [ - "node_modules/(?!(juno-ui-components|messages-provider)/)", + "node_modules/(?!(juno-ui-components|messages-provider|url-state-router|utils)/)", ], moduleNameMapper: { // Jest currently doesn't support resources with query parameters. diff --git a/apps/exampleapp/jest.config.js b/apps/exampleapp/jest.config.js index 5f65d6a46..33ea7ddfe 100644 --- a/apps/exampleapp/jest.config.js +++ b/apps/exampleapp/jest.config.js @@ -7,7 +7,9 @@ module.exports = { transform: { "\\.[jt]sx?$": "babel-jest" }, testEnvironment: "jsdom", setupFilesAfterEnv: ["/setupTests.js"], - transformIgnorePatterns: ["node_modules/(?!(juno-ui-components)/)"], + transformIgnorePatterns: [ + "node_modules/(?!(juno-ui-components|oauth|messages-provider|utils)/)", + ], moduleNameMapper: { // Jest currently doesn't support resources with query parameters. // Therefore we add the optional query parameter matcher at the end diff --git a/apps/volta/jest.config.js b/apps/volta/jest.config.js index d16f3da9d..cd58e0648 100644 --- a/apps/volta/jest.config.js +++ b/apps/volta/jest.config.js @@ -8,7 +8,7 @@ module.exports = { testEnvironment: "jsdom", setupFilesAfterEnv: ["/setupTests.js"], transformIgnorePatterns: [ - "node_modules/(?!(juno-ui-components|messages-provider)/)", + "node_modules/(?!(juno-ui-components|messages-provider|utils)/)", ], moduleNameMapper: { // Jest currently doesn't support resources with query parameters.