Skip to content

Commit

Permalink
fix(build): npm updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Apr 18, 2023
1 parent b9d5ca2 commit 8998f21
Show file tree
Hide file tree
Showing 6 changed files with 546 additions and 591 deletions.
12 changes: 11 additions & 1 deletion config/jest.setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,20 @@ global.window.insights = {
identifyApp: Function.prototype,
init: Function.prototype,
isBeta: Function.prototype,
on: Function.prototype
on: Function.prototype,
updateDocumentTitle: Function.prototype
}
};

/**
* Emulate frontend-components hooks
*/
jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
useChrome: () => ({
...global.window.insights
})
}));

/**
* Mock an object property, restore with mockClear.
* A consistent object property mock for scenarios where the property is not a function/Jest fails.
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,20 @@
"dependencies": {
"@joi/date": "^2.1.0",
"@patternfly/patternfly": "4.224.2",
"@patternfly/react-charts": "6.94.18",
"@patternfly/react-core": "4.276.6",
"@patternfly/react-charts": "6.94.19",
"@patternfly/react-core": "4.276.8",
"@patternfly/react-icons": "4.93.6",
"@patternfly/react-styles": "4.92.6",
"@patternfly/react-table": "4.112.39",
"@patternfly/react-table": "4.113.0",
"@patternfly/react-tokens": "4.94.6",
"@redhat-cloud-services/frontend-components": "3.9.25",
"@redhat-cloud-services/frontend-components": "3.9.34",
"@redhat-cloud-services/frontend-components-notifications": "3.2.14",
"@redhat-cloud-services/frontend-components-utilities": "3.3.13",
"@redhat-cloud-services/frontend-components-utilities": "3.5.0",
"axios": "^0.27.2",
"classnames": "^2.3.2",
"crypto-js": "^4.1.1",
"fastest-levenshtein": "^1.0.16",
"i18next": "^22.4.11",
"i18next": "^22.4.14",
"i18next-http-backend": "^2.2.0",
"iso-639-1": "^2.1.15",
"joi": "^17.9.1",
Expand All @@ -113,24 +113,24 @@
"victory-create-container": "36.6.8"
},
"devDependencies": {
"@babel/core": "7.21.3",
"@babel/eslint-parser": "^7.19.1",
"@redhat-cloud-services/frontend-components-config": "4.7.0",
"@babel/core": "7.21.4",
"@babel/eslint-parser": "^7.21.3",
"@redhat-cloud-services/frontend-components-config": "4.7.2",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"apidoc-mock": "^4.1.0",
"babel-jest": "^29.4.3",
"apidoc-mock": "^4.2.0",
"babel-jest": "^29.5.0",
"babel-preset-react-app": "^10.0.1",
"changelog-light": "^0.3.1",
"copy-webpack-plugin": "^11.0.0",
"cspell": "^6.26.3",
"cspell": "^6.31.1",
"dotenv": "^16.0.3",
"dotenv-expand": "^10.0.0",
"dotenv-webpack": "^8.0.1",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"eslint": "8.36.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.7.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
Expand All @@ -143,19 +143,19 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-webpack-plugin": "^4.0.0",
"express": "^4.18.2",
"glob": "^8.1.0",
"glob": "^10.0.0",
"jest": "29.5.0",
"jest-environment-jsdom": "29.4.3",
"jest-resolve": "29.4.3",
"jest-environment-jsdom": "29.5.0",
"jest-resolve": "29.5.0",
"jest-watch-typeahead": "2.2.2",
"jsdoc-to-markdown": "^8.0.0",
"moxios": "^0.4.0",
"npm-check-updates": "^16.10.0",
"npm-check-updates": "^16.10.8",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.4",
"prettier": "^2.8.7",
"react-scripts": "^5.0.1",
"redux-mock-store": "^1.5.4",
"swagger-ui-express": "^4.6.1",
"swagger-ui-express": "^4.6.2",
"webpack-bundle-analyzer": "^4.8.0",
"yamljs": "^0.3.0"
},
Expand Down
Loading

0 comments on commit 8998f21

Please sign in to comment.