Skip to content

Commit

Permalink
Build: Bump the npm group with 33 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Feb 2, 2024
1 parent fbaee75 commit af9085b
Show file tree
Hide file tree
Showing 12 changed files with 1,286 additions and 1,702 deletions.
2 changes: 2 additions & 0 deletions config/setupAfterEnv.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@testing-library/jest-dom/jest-globals';
import '@testing-library/jest-dom';
5 changes: 0 additions & 5 deletions config/setupTests.ts

This file was deleted.

8 changes: 2 additions & 6 deletions fec.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ module.exports = {
*/
plugins: [],
moduleFederation: {
exclude: [
'react-router-dom'
],
shared: [
{ 'react-router-dom': { singleton: true, version:'5.3.3' } }
],
exclude: ['react-router-dom'],
shared: [{ 'react-router-dom': { singleton: true, import: false, version: '^6.3.0' } }],
},
};
22 changes: 4 additions & 18 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
module.exports = {
preset: 'ts-jest',
// transform: {
// // '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// // '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
// '^.+\\.[tj]sx?$': [
// 'ts-jest',
// {
// useESM: true,
// babelConfig: true,
// tsconfig: 'tsconfig.json',
// },
// ],
// },
testEnvironment: 'jsdom',
// coverageDirectory: './coverage',
// collectCoverageFrom: ['src/**/*.test.{ts,tsx}', '!**/node_modules/**', '!test/**'],
// coveragePathIgnorePatterns: [],
setupFiles: ['<rootDir>/config/setupTests.ts'],
setupFilesAfterEnv: ['@testing-library/jest-dom/'],
setupFiles: [],
setupFilesAfterEnv: ['<rootDir>/config/setupAfterEnv.ts'],
roots: ['<rootDir>/src/'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/config/empty.js',
'\\.(svg)$': 'identity-obj-proxy',
'\\.(css|scss)$': 'identity-obj-proxy',
// '^react$': '<rootDir>/node_modules/react',
// '^react-dom$': '<rootDir>/node_modules/react-dom',
},
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!@redhat-cloud-services|@openshift|lodash-es|uuid|@patternfly/react-icons)',
// '<rootDir>/node_modules/@patternfly/react-icons',
],
};
Loading

0 comments on commit af9085b

Please sign in to comment.