generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): Updating FEC and related packages (#1206)
* chore(deps): Updating FEC and related packages * Feedback from review --------- Co-authored-by: Egor Shamardin <[email protected]>
- Loading branch information
1 parent
d87c000
commit 8cf53a8
Showing
12 changed files
with
4,197 additions
and
8,426 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"presets": ["@babel/preset-react", "@babel/preset-env"], | ||
"plugins": [ | ||
[ | ||
"transform-inline-environment-variables", | ||
{ | ||
"include": ["NODE_ENV"] | ||
} | ||
], | ||
"@babel/plugin-transform-runtime", | ||
"@babel/plugin-syntax-dynamic-import" | ||
], | ||
"env": { | ||
"componentTest": { | ||
"plugins": ["istanbul"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
const { resolve } = require('path'); | ||
const path = require('path'); | ||
const { dependencies, insights } = require('./package.json'); | ||
|
||
module.exports = { | ||
appName: insights.appname, | ||
appUrl: '/insights/patch', | ||
debug: true, | ||
useProxy: process.env.PROXY === 'true', | ||
proxyVerbose: true, | ||
plugins: [], | ||
...(process.env.HOT ? { hotReload: process.env.HOT === 'true' } : { hotReload: true }), | ||
...(process.env.port ? { port: parseInt(process.env.port) } : {}), | ||
moduleFederation: { | ||
moduleName: insights.appname, | ||
exposes: { | ||
'./RootApp': path.resolve(__dirname, './src/AppEntry'), | ||
'./SystemDetail': path.resolve(__dirname, './src/index.js') | ||
}, | ||
shared: [ | ||
{ | ||
'react-router-dom': { | ||
singleton: true, | ||
import: false, | ||
version: '^6.8.1', | ||
version: dependencies['react-router-dom'], | ||
requiredVersion: '>=6.0.0 <7.0.0' | ||
} | ||
} | ||
], | ||
exposes: { | ||
'./RootApp': resolve(__dirname, './src/AppEntry'), | ||
'./SystemDetail': resolve(__dirname, './src/index.js') | ||
} | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
coverageDirectory: "./codecov-jest/", | ||
testEnvironment: "jsdom", | ||
transform: { | ||
"^.+\\.(js|jsx)$": "babel-jest", | ||
}, | ||
collectCoverage: true, | ||
collectCoverageFrom: ["src/**/*.js", "!src/**/stories/*"], | ||
setupFiles: ["<rootDir>/config/setupTests.js"], | ||
roots: ["<rootDir>/src/"], | ||
moduleNameMapper: { | ||
"\\.(css|scss)$": "identity-obj-proxy", | ||
}, | ||
testPathIgnorePatterns: [ | ||
"src/SmartComponents/SystemDetail/InventoryDetail.test.js", | ||
"src/SmartComponents/PatchSet/PatchSet.test.js", | ||
], | ||
transformIgnorePatterns: [ | ||
"<rootDir>/node_modules/(?!(@patternfly/react-core/|@patternfly/react-icons/|@redhat-cloud-services|@openshift|lodash-es|@patternfly/react-table|@patternfly/react-tokens|p-all)).*$", | ||
], | ||
}; |
Oops, something went wrong.