diff --git a/client/jest.config.js b/client/jest.config.js index 16951d4b42..cca84303d4 100644 --- a/client/jest.config.js +++ b/client/jest.config.js @@ -2,6 +2,7 @@ module.exports = { moduleDirectories: ["platform/node", "src", "node_modules"], moduleNameMapper: { "^d3$": "/node_modules/d3/dist/d3.min.js", + "^change-case$": "/node_modules/change-case/dist/index.js", "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/config/jest/FileStub.js", "^.+\\.css$": "/config/jest/CSSStub.js" @@ -10,6 +11,6 @@ module.exports = { setupFilesAfterEnv: ["/jest-setup.js"], testEnvironment: "jsdom", transformIgnorePatterns: [ - "/node_modules/(?!(jsonpath-plus|title-case)/)" + "/node_modules/(?!(change-case|jsonpath-plus|title-case)/)" ] } diff --git a/client/package.json b/client/package.json index a1f3479bcc..75cf195fc7 100644 --- a/client/package.json +++ b/client/package.json @@ -130,7 +130,7 @@ "@projectstorm/react-diagrams": "7.0.3", "axios": "1.5.1", "bootstrap": "5.1.3", - "change-case": "4.1.2", + "change-case": "5.0.2", "classnames": "2.3.2", "closest": "0.0.1", "core-js": "3.33.0", diff --git a/client/yarn.lock b/client/yarn.lock index d152294a67..dbc3b77a1b 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -6559,7 +6559,12 @@ change-case-all@1.0.15: upper-case "^2.0.2" upper-case-first "^2.0.2" -change-case@4.1.2, change-case@^4.1.2: +change-case@5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/change-case/-/change-case-5.0.2.tgz#0f1885d310b84065a17b20e8231c7dff37207627" + integrity sha512-tH6YZXViaeC2/Mnt8m4gSmbZfNorC2rhwCX2bXw8SYZWr8ljCPB7iA+1TLG9t7yroWBFauc63LlOZ1gucMVCWw== + +change-case@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/change-case/-/change-case-4.1.2.tgz#fedfc5f136045e2398c0410ee441f95704641e12" integrity sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==