|
@@ -12,10 +12,12 @@
|
|
|
"clean": "rm -rf dist",
|
|
"clean": "rm -rf dist",
|
|
|
"build": "yarn clean && NODE_ENV=production yarn webpack",
|
|
"build": "yarn clean && NODE_ENV=production yarn webpack",
|
|
|
"build-dev": "yarn clean && yarn webpack",
|
|
"build-dev": "yarn clean && yarn webpack",
|
|
|
|
|
+ "coverage": "jest --coverage",
|
|
|
"start": "yarn webpack serve --progress",
|
|
"start": "yarn webpack serve --progress",
|
|
|
"start-console": "./start-console.sh",
|
|
"start-console": "./start-console.sh",
|
|
|
"i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js",
|
|
"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": "LANG=en_US.UTF-8 jest",
|
|
|
|
|
+ "lint": "yarn eslint src integration-tests --fix --max-warnings 0 && stylelint 'src/**/*.css' --allow-empty-input --fix",
|
|
|
"test-cypress": "cd integration-tests && cypress open",
|
|
"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}",
|
|
"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-merge": "mochawesome-merge ./integration-tests/screenshots/cypress_report*.json > ./integration-tests/screenshots/cypress.json",
|
|
@@ -32,6 +34,13 @@
|
|
|
"@patternfly/react-core": "^6.4.3",
|
|
"@patternfly/react-core": "^6.4.3",
|
|
|
"@patternfly/react-icons": "^6.4.0",
|
|
"@patternfly/react-icons": "^6.4.0",
|
|
|
"@patternfly/react-table": "^6.4.3",
|
|
"@patternfly/react-table": "^6.4.3",
|
|
|
|
|
+ "@swc/core": "^1.15.32",
|
|
|
|
|
+ "@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/node": "^22.0.0",
|
|
|
"@types/react": "^18.3.28",
|
|
"@types/react": "^18.3.28",
|
|
|
"babel-loader": "^10.1.1",
|
|
"babel-loader": "^10.1.1",
|
|
@@ -41,13 +50,21 @@
|
|
|
"cypress-multi-reporters": "^2.0.5",
|
|
"cypress-multi-reporters": "^2.0.5",
|
|
|
"eslint": "^9.7.0",
|
|
"eslint": "^9.7.0",
|
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
|
|
|
+ "eslint-import-resolver-typescript": "^4.4.4",
|
|
|
"eslint-plugin-cypress": "^6.4.0",
|
|
"eslint-plugin-cypress": "^6.4.0",
|
|
|
|
|
+ "eslint-plugin-import-x": "^4.16.2",
|
|
|
|
|
+ "eslint-plugin-jest": "^29.15.2",
|
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"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",
|
|
"globals": "^17.6.0",
|
|
|
"i18next": "^25.8.18",
|
|
"i18next": "^25.8.18",
|
|
|
"i18next-parser": "^9.4.0",
|
|
"i18next-parser": "^9.4.0",
|
|
|
|
|
+ "jest": "^30.3.0",
|
|
|
|
|
+ "jest-environment-jsdom": "^30.3.0",
|
|
|
|
|
+ "jest-junit": "^17.0.0",
|
|
|
"mocha": "^11.7.5",
|
|
"mocha": "^11.7.5",
|
|
|
"mocha-junit-reporter": "^2.2.1",
|
|
"mocha-junit-reporter": "^2.2.1",
|
|
|
"mochawesome": "^7.1.4",
|
|
"mochawesome": "^7.1.4",
|
|
@@ -62,7 +79,7 @@
|
|
|
"style-loader": "^4.0.0",
|
|
"style-loader": "^4.0.0",
|
|
|
"stylelint": "^17.9.1",
|
|
"stylelint": "^17.9.1",
|
|
|
"stylelint-config-standard": "^40.0.0",
|
|
"stylelint-config-standard": "^40.0.0",
|
|
|
- "ts-loader": "^9.5.7",
|
|
|
|
|
|
|
+ "swc-loader": "^0.2.7",
|
|
|
"ts-node": "^10.9.2",
|
|
"ts-node": "^10.9.2",
|
|
|
"typescript": "^5.9.3",
|
|
"typescript": "^5.9.3",
|
|
|
"typescript-eslint": "^8.59.1",
|
|
"typescript-eslint": "^8.59.1",
|