diff --git a/packages/volta/jest.config.js b/packages/volta/jest.config.js index a36c96aee..3606eabf2 100644 --- a/packages/volta/jest.config.js +++ b/packages/volta/jest.config.js @@ -8,7 +8,7 @@ module.exports = { testEnvironment: "jsdom", setupFilesAfterEnv: ["/setupTests.js"], transformIgnorePatterns: [ - "node_modules/(?!(@cloudoperators/juno-ui-components|@cloudoperators/juno-messages-provider|@cloudoperators/juno-utils)/)", + "node_modules/(?!(@cloudoperators/juno-ui-components|@cloudoperators/juno-messages-provider|@cloudoperators/juno-utils|@cloudoperators/juno-url-state-provider-v1)/)", ], moduleNameMapper: { // Jest currently doesn't support resources with query parameters. diff --git a/packages/volta/package-lock.json b/packages/volta/package-lock.json index 3ddc39f9d..19f6a2b1b 100644 --- a/packages/volta/package-lock.json +++ b/packages/volta/package-lock.json @@ -1,12 +1,12 @@ { "name": "@juno/volta", - "version": "1.0.4", + "version": "1.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@juno/volta", - "version": "1.0.4", + "version": "1.0.6", "license": "Apache-2.0", "devDependencies": { "@babel/core": "^7.20.2", diff --git a/packages/volta/src/App.test.js b/packages/volta/src/App.test.js index dd1208873..dcc3f222b 100644 --- a/packages/volta/src/App.test.js +++ b/packages/volta/src/App.test.js @@ -10,7 +10,7 @@ import { render } from "@testing-library/react" import { screen } from "shadow-dom-testing-library" import { oidcSession } from "@cloudoperators/juno-oauth" -jest.mock("oauth", () => { +jest.mock("@cloudoperators/juno-oauth", () => { return { oidcSession: jest.fn((props = {}) => { if (props?.onUpdate) { diff --git a/packages/whois/jest.config.js b/packages/whois/jest.config.js index e7a9472d5..ea0083348 100644 --- a/packages/whois/jest.config.js +++ b/packages/whois/jest.config.js @@ -7,7 +7,9 @@ module.exports = { transform: { "\\.[jt]sx?$": "babel-jest" }, testEnvironment: "jsdom", setupFilesAfterEnv: ["/setupTests.js"], - transformIgnorePatterns: ["node_modules/(?!(from "@cloudoperators/juno-ui-components")/)"], + transformIgnorePatterns: [ + "node_modules/(?!(@cloudoperators/juno-ui-components|@cloudoperators/juno-url-state-provider-v1)/)", + ], moduleNameMapper: { // Jest currently doesn't support resources with query parameters. // Therefore we add the optional query parameter matcher at the end