Skip to content

Commit

Permalink
fix(advisor components): included chrome override to prevent test fai…
Browse files Browse the repository at this point in the history
…lure
  • Loading branch information
Fewwy committed Apr 25, 2023
1 parent 1d05d86 commit b82e2d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/advisor-components/cypress/cypress.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ module.exports = {
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
alias: {
'@redhat-cloud-services/frontend-components/useChrome': path.resolve(
__dirname,
'./overrideChrome.js'
),
},
},
output: {
filename: 'bundle.js',
Expand Down
5 changes: 5 additions & 0 deletions packages/advisor-components/cypress/overrideChrome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default () => ({
updateDocumentTitle: () => undefined,
isBeta: () => false,
isProd: () => true,
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b82e2d5

Please sign in to comment.