Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment commit for prod-stable #972

Merged
merged 24 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7fd5e91
(chore): Bump @redhat-cloud-services/frontend-components
dependabot[bot] Jan 22, 2024
6bd2bbd
Merge pull request #958 from RedHatInsights/dependabot_npm_and_yarn_m…
dlabrecq Jan 22, 2024
2e94b25
Dependency updates
dlabrecq Jan 22, 2024
829aae0
Merge pull request #960 from dlabrecq/deps2
dlabrecq Jan 22, 2024
6cc226e
Replace deprecated PatternFly select component
dlabrecq Jan 22, 2024
9d8cc3c
Merge pull request #961 from dlabrecq/select
dlabrecq Jan 22, 2024
f24208a
Refactor select component wrapper
dlabrecq Jan 24, 2024
5be707d
Merge pull request #962 from dlabrecq/select-fix
dlabrecq Jan 24, 2024
a9cbb7d
Migrate frontend components -> patternfly/react-component-groups
dlabrecq Jan 24, 2024
0193a68
Merge pull request #963 from dlabrecq/react-component-groups
dlabrecq Jan 24, 2024
1dbca7c
Refactor tests to use @swc/jest
dlabrecq Jan 26, 2024
09508a0
Dependency updates
dlabrecq Jan 26, 2024
186066a
Add @patternfly/react-component-groups dependency
dlabrecq Jan 26, 2024
62545ad
Update gitignore
dlabrecq Jan 26, 2024
1dd9b82
Merge pull request #964 from dlabrecq/swc
dlabrecq Jan 26, 2024
d03e844
Dependency updates
dlabrecq Jan 30, 2024
5618214
Merge pull request #967 from dlabrecq/deps
dlabrecq Jan 30, 2024
fe559cb
More dependency updates
dlabrecq Jan 30, 2024
ecb4417
Merge pull request #969 from dlabrecq/deps2
dlabrecq Jan 30, 2024
2ea6ead
Merge remote-tracking branch 'origin/main' into stage-stable
dlabrecq Jan 30, 2024
32d2fc9
Merge pull request #970 from RedHatInsights/release_stage-stable.12413
dlabrecq Jan 30, 2024
52f4fb6
Merge remote-tracking branch 'origin/stage-stable' into prod-beta
dlabrecq Jan 30, 2024
7443e5e
Merge pull request #971 from RedHatInsights/release_prod-beta.13052
dlabrecq Jan 30, 2024
4ff9673
Merge remote-tracking branch 'origin/prod-beta' into prod-stable
dlabrecq Jan 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions .archive/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
clearMocks: true,
collectCoverage: false,
collectCoverageFrom: ['src/**/*.tsx'],
coverageDirectory: './coverage/',
fakeTimers: {
enableGlobally: true,
},
moduleFileExtensions: ['ts', 'tsx', 'js'],
moduleDirectories: ['node_modules', '<rootDir>/src'],
moduleNameMapper: {
'\\.(css|less|sass|scss)$': '<rootDir>/test/styleMock.js',
},
roots: ['<rootDir>/src'],
setupFiles: ['<rootDir>/test/testEnv.ts'],
testEnvironment: 'jest-environment-jsdom',
testEnvironmentOptions: {
url: 'http://localhost/',
},
testRegex: '\\.test\\.(jsx?|tsx?)$',
transform: {
'^.+\\.[jt]sx?$': '<rootDir>/test/transformTS.js',
'^.+\\.(jpg)$': '<rootDir>/test/transformFile.js',
},
transformIgnorePatterns: ['node_modules/(?!@patternfly/react-icons/dist/esm)'],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
59 changes: 59 additions & 0 deletions .archive/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
//{
// "compilerOptions": {
// "allowJs": true,
// "allowSyntheticDefaultImports": true,
// "baseUrl": "./src",
// "esModuleInterop": true,
// "forceConsistentCasingInFileNames": true,
// >>> "isolatedModules": false,
// "jsx": "react",
// >>> "lib": [
// "dom",
// "es2017"
// ],
// "module": "esnext",
// "moduleResolution": "node",
// >>> "noUnusedLocals": true,
// "resolveJsonModule": true,
// "sourceMap": true,
// >>> "target": "es2017"
// },
// "include": [
// "./src/**/*.ts*",
// "./test/**/*"
// ],
// >>> "exclude": [
// "./node_modules/**",
// "./src/**/*.test.ts*",
// "./src/__mocks__/*"
// ]
//}

{
"compilerOptions": {
"baseUrl": "./src",
"outDir": "./dist/",
"sourceMap": true,
// "noImplicitAny": true,
"module": "esnext",
"target": "esnext",
"jsx": "react",
"allowJs": true,
"moduleResolution": "node",
"removeComments": false,
// "strict": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"types": ["node", "jest", "@testing-library/jest-dom"],
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.js",
"src/**/*.jsx"
]
}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ dist/
report.*.json
locales/*[en|de|fr].json
.vscode/
.swc/
48 changes: 35 additions & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
const transformIgnorePatterns = [
'node_modules/(?!(@patternfly/react-core/src|@patternfly/react-icons/dist/esm|uuid/dist/esm-browser))',
];

/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
clearMocks: true,
collectCoverage: false,
collectCoverageFrom: ['src/**/*.tsx'],
coverageDirectory: './coverage/',
// collectCoverageFrom: ['src/**/*.js'],
// coverageDirectory: './coverage/',
fakeTimers: {
enableGlobally: true,
},
moduleFileExtensions: ['ts', 'tsx', 'js'],
moduleDirectories: ['node_modules', '<rootDir>/src'],
moduleNameMapper: {
'\\.(css|less|sass|scss)$': '<rootDir>/test/styleMock.js',
'\\.(css|scss)$': 'identity-obj-proxy',
},
roots: ['<rootDir>/src'],
preset: 'ts-jest',
roots: ['<rootDir>/src/'],
setupFiles: ['<rootDir>/test/testEnv.ts'],
testEnvironment: 'jest-environment-jsdom',
testEnvironmentOptions: {
url: 'http://localhost/',
},
testRegex: '\\.test\\.(jsx?|tsx?)$',
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.js'],
testEnvironment: 'jsdom',
transformIgnorePatterns,
transform: {
'^.+\\.[jt]sx?$': '<rootDir>/test/transformTS.js',
'^.+\\.(jpg)$': '<rootDir>/test/transformFile.js',
'^.+\\.svg$': 'jest-transform-stub',
'^.+\\.(ts|js)x?$': [
'@swc/jest',
{
$schema: 'http://json.schemastore.org/swcrc',
jsc: {
experimental: {
plugins: [['jest_workaround', {}]],
},
parser: {
jsx: true,
syntax: 'typescript',
tsx: true,
},
transform: {
react: {
runtime: 'automatic',
},
},
},
},
],
},
transformIgnorePatterns: ['node_modules/(?!@patternfly/react-icons/dist/esm)'],
};
Loading
Loading