|
|
@@ -12,66 +12,77 @@
|
|
|
"clean": "rm -rf dist",
|
|
|
"build": "yarn clean && NODE_ENV=production yarn webpack",
|
|
|
"build-dev": "yarn clean && yarn webpack",
|
|
|
+ "coverage": "jest --coverage",
|
|
|
"start": "yarn webpack serve --progress",
|
|
|
"start-console": "./start-console.sh",
|
|
|
"i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
|
|
|
- "lint": "yarn eslint src integration-tests --fix && stylelint 'src/**/*.css' --allow-empty-input --fix",
|
|
|
- "test-cypress": "cd integration-tests && cypress open",
|
|
|
- "test-cypress-headless": "cd integration-tests && node --max-old-space-size=4096 ../node_modules/.bin/cypress run --browser ${BRIDGE_E2E_BROWSER_NAME:-electron}",
|
|
|
- "cypress-merge": "mochawesome-merge ./integration-tests/screenshots/cypress_report*.json > ./integration-tests/screenshots/cypress.json",
|
|
|
- "cypress-generate": "marge -o ./integration-tests/screenshots/ -f cypress-report -t 'OpenShift Console Plugin Template Cypress Test Results' -p 'OpenShift Cypress Plugin Template Test Results' --showPassed false --assetsDir ./integration-tests/screenshots/cypress/assets ./integration-tests/screenshots/cypress.json",
|
|
|
- "cypress-postreport": "yarn cypress-merge && yarn cypress-generate",
|
|
|
+ "test": "LANG=en_US.UTF-8 jest",
|
|
|
+ "lint": "yarn eslint src integration-tests --fix --max-warnings 0 && stylelint 'src/**/*.css' --allow-empty-input --fix",
|
|
|
+ "test-e2e": "playwright test --headed",
|
|
|
+ "test-e2e-headless": "playwright test",
|
|
|
"webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
- "@babel/core": "^7.29.0",
|
|
|
- "@babel/preset-env": "^7.29.0",
|
|
|
- "@cypress/webpack-preprocessor": "^7.0.2",
|
|
|
- "@openshift-console/dynamic-plugin-sdk": "4.21-latest",
|
|
|
- "@openshift-console/dynamic-plugin-sdk-webpack": "4.21-latest",
|
|
|
- "@patternfly/react-core": "^6.2.2",
|
|
|
- "@patternfly/react-icons": "^6.2.2",
|
|
|
- "@patternfly/react-table": "^6.2.2",
|
|
|
+ "@babel/core": "^7.29.7",
|
|
|
+ "@babel/preset-env": "^7.29.7",
|
|
|
+ "@openshift-console/dynamic-plugin-sdk": "4.22-latest",
|
|
|
+ "@openshift-console/dynamic-plugin-sdk-webpack": "4.22-latest",
|
|
|
+ "@patternfly/react-core": "^6.4.3",
|
|
|
+ "@patternfly/react-icons": "^6.4.0",
|
|
|
+ "@patternfly/react-table": "^6.4.3",
|
|
|
+ "@playwright/browser-chromium": "^1.60.0",
|
|
|
+ "@playwright/test": "^1.60.0",
|
|
|
+ "@swc/core": "^1.15.40",
|
|
|
+ "@swc/jest": "^0.2.39",
|
|
|
+ "@testing-library/dom": "^10.4.1",
|
|
|
+ "@testing-library/jest-dom": "^6.9.1",
|
|
|
+ "@testing-library/react": "^16.3.2",
|
|
|
+ "@testing-library/user-event": "^14.6.1",
|
|
|
+ "@types/jest": "^30.0.0",
|
|
|
"@types/node": "^22.0.0",
|
|
|
- "@types/react": "^17.0.37",
|
|
|
- "@types/react-router-dom": "^5.3.3",
|
|
|
- "babel-loader": "^10.1.0",
|
|
|
+ "@types/react": "^18.3.28",
|
|
|
+ "babel-loader": "^10.1.1",
|
|
|
"copy-webpack-plugin": "^14.0.0",
|
|
|
"css-loader": "^7.1.4",
|
|
|
- "cypress": "^15.11.0",
|
|
|
- "cypress-multi-reporters": "^2.0.5",
|
|
|
"eslint": "^9.7.0",
|
|
|
"eslint-config-prettier": "^10.1.8",
|
|
|
- "eslint-plugin-cypress": "^6.1.0",
|
|
|
- "eslint-plugin-prettier": "^5.5.5",
|
|
|
+ "eslint-import-resolver-typescript": "^4.4.5",
|
|
|
+ "eslint-plugin-import-x": "^4.16.2",
|
|
|
+ "eslint-plugin-jest": "^29.15.2",
|
|
|
+ "eslint-plugin-playwright": "^2.10.4",
|
|
|
+ "eslint-plugin-prettier": "^5.5.6",
|
|
|
"eslint-plugin-react": "^7.37.5",
|
|
|
- "eslint-plugin-react-hooks": "^7.0.1",
|
|
|
- "globals": "^17.4.0",
|
|
|
- "i18next": "^23.11.5",
|
|
|
+ "eslint-plugin-react-hooks": "^7.1.1",
|
|
|
+ "eslint-plugin-testing-library": "^7.16.2",
|
|
|
+ "fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
|
+ "globals": "^17.6.0",
|
|
|
+ "i18next": "^25.8.18",
|
|
|
"i18next-parser": "^9.4.0",
|
|
|
- "mocha": "^11.7.5",
|
|
|
- "mocha-junit-reporter": "^2.2.1",
|
|
|
- "mochawesome": "^7.1.4",
|
|
|
- "mochawesome-merge": "^5.1.1",
|
|
|
+ "jest": "^30.4.2",
|
|
|
+ "jest-environment-jsdom": "^30.4.1",
|
|
|
+ "jest-junit": "^17.0.0",
|
|
|
"pluralize": "^8.0.0",
|
|
|
- "prettier": "^3.8.1",
|
|
|
+ "prettier": "^3.8.3",
|
|
|
"prettier-stylelint": "^0.4.2",
|
|
|
- "react": "^17.0.1",
|
|
|
- "react-dom": "^17.0.1",
|
|
|
- "react-i18next": "^11.7.3",
|
|
|
- "react-router": "5.3.x",
|
|
|
- "react-router-dom": "5.3.x",
|
|
|
- "react-router-dom-v5-compat": "^6.11.2",
|
|
|
+ "react": "^18.3.1",
|
|
|
+ "react-dom": "^18.3.1",
|
|
|
+ "react-i18next": "~16.5.8",
|
|
|
+ "react-router": "~7.13.1",
|
|
|
"style-loader": "^4.0.0",
|
|
|
- "stylelint": "^17.4.0",
|
|
|
+ "stylelint": "^17.13.0",
|
|
|
"stylelint-config-standard": "^40.0.0",
|
|
|
- "ts-loader": "^9.5.4",
|
|
|
+ "swc-loader": "^0.2.7",
|
|
|
"ts-node": "^10.9.2",
|
|
|
"typescript": "^5.9.3",
|
|
|
- "typescript-eslint": "^8.56.1",
|
|
|
- "webpack": "^5.100.0",
|
|
|
- "webpack-cli": "^6.0.1",
|
|
|
- "webpack-dev-server": "^5.2.3"
|
|
|
+ "typescript-eslint": "^8.61.0",
|
|
|
+ "webpack": "^5.107.2",
|
|
|
+ "webpack-cli": "^7.0.3",
|
|
|
+ "webpack-dev-server": "^5.2.4"
|
|
|
+ },
|
|
|
+ "dependenciesMeta": {
|
|
|
+ "@playwright/browser-chromium": {
|
|
|
+ "built": true
|
|
|
+ }
|
|
|
},
|
|
|
"consolePlugin": {
|
|
|
"name": "console-plugin-template",
|
|
|
@@ -82,8 +93,8 @@
|
|
|
"ExamplePage": "./components/ExamplePage"
|
|
|
},
|
|
|
"dependencies": {
|
|
|
- "@console/pluginAPI": "^4.21.0"
|
|
|
+ "@console/pluginAPI": ">=4.22.0-0"
|
|
|
}
|
|
|
},
|
|
|
- "packageManager": "yarn@4.13.0"
|
|
|
+ "packageManager": "yarn@4.14.1"
|
|
|
}
|