From 825159338db82b99158273df55c0be62883ca600 Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Fri, 5 Apr 2024 09:49:15 +0200 Subject: [PATCH] update karma packages --- .github/workflows/ci-client.yml | 4 +- package-lock.json | 93 ++++++--------------------------- package.json | 22 +++----- 3 files changed, 26 insertions(+), 93 deletions(-) diff --git a/.github/workflows/ci-client.yml b/.github/workflows/ci-client.yml index da6ced731..bf337b013 100644 --- a/.github/workflows/ci-client.yml +++ b/.github/workflows/ci-client.yml @@ -22,5 +22,5 @@ jobs: # avoid file watch limit error - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - run: npm list || true - - name: test - run: npm run test + - run: npm run test + - run: npm run lint diff --git a/package-lock.json b/package-lock.json index 928677b4a..0725a6f81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -321,12 +321,6 @@ "hoist-non-react-statics": "^3.3.0" } }, - "@types/jasmine": { - "version": "3.10.18", - "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-3.10.18.tgz", - "integrity": "sha512-jOk52a1Kz+1oU5fNWwAcNe64/GsE7r/Q6ronwDox0D3ETo/cr4ICMQyeXrj7G6FPW1n8YjRoAZA2F0XBr6GicQ==", - "dev": true - }, "@types/lodash": { "version": "4.14.117", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.117.tgz", @@ -522,12 +516,6 @@ } } }, - "@xmldom/xmldom": { - "version": "0.8.6", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.6.tgz", - "integrity": "sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg==", - "dev": true - }, "@yarnpkg/lockfile": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", @@ -9951,41 +9939,6 @@ "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", "dev": true }, - "jasmine": { - "version": "2.99.0", - "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-2.99.0.tgz", - "integrity": "sha512-kmuDC+6c9tA8BAZGd7wmucWKrM/aCCBSzCJEqRghvw9lKValw+pg88aN/BFIikmZwRTD57QmHamQ2wRpKb3FDQ==", - "dev": true, - "requires": { - "exit": "^0.1.2", - "glob": "^7.0.6", - "jasmine-core": "~2.99.0" - } - }, - "jasmine-core": { - "version": "2.99.1", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.99.1.tgz", - "integrity": "sha512-ra97U4qu3OCcIxvN6eg3kyy8bLrID/TgxafSGMMICg3SFx5C/sUfDPpiOh7yoIsHdtjrOVdtT9rieYhqOsh9Ww==", - "dev": true - }, - "jasmine-reporters": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jasmine-reporters/-/jasmine-reporters-2.5.2.tgz", - "integrity": "sha512-qdewRUuFOSiWhiyWZX8Yx3YNQ9JG51ntBEO4ekLQRpktxFTwUHy24a86zD/Oi2BRTKksEdfWQZcQFqzjqIkPig==", - "dev": true, - "requires": { - "@xmldom/xmldom": "^0.8.5", - "mkdirp": "^1.0.4" - }, - "dependencies": { - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - } - } - }, "jit-grunt": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/jit-grunt/-/jit-grunt-0.10.0.tgz", @@ -10446,28 +10399,29 @@ } }, "karma-cli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/karma-cli/-/karma-cli-1.0.1.tgz", - "integrity": "sha512-A/KNa3Is0F7Vv5SIeq0Wj6yGvAIUkrmSU03Wcles4wIkU5MORUTxzwbYT4Tz0qOofx4upfFQU/uIYfGYtADTaA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/karma-cli/-/karma-cli-2.0.0.tgz", + "integrity": "sha512-1Kb28UILg1ZsfqQmeELbPzuEb5C6GZJfVIk0qOr8LNYQuYWmAaqP16WpbpKEjhejDrDYyYOwwJXSZO6u7q5Pvw==", "dev": true, "requires": { - "resolve": "^1.1.6" + "resolve": "^1.3.3" } }, "karma-jasmine": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.2.tgz", - "integrity": "sha512-SENGE9DhlIIFTSZWiNq4eGeXL8G6z9cqHIOdkx9jh1qhhQqwEy3tAoLRyER0vOcHqdOlKmGpOuXk+HOipIy7sg==", - "dev": true - }, - "karma-junit-reporter": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/karma-junit-reporter/-/karma-junit-reporter-1.2.0.tgz", - "integrity": "sha512-FeuLOKlXNtJhIQK3oQASbO5QOib762CEHV8+L9wwTQpiZJgp7xKg3sNno66rL5bQPV2soG6fJdAFWqqnMJuh2w==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-2.0.1.tgz", + "integrity": "sha512-iuC0hmr9b+SNn1DaUD2QEYtUxkS1J+bSJSn7ejdEexs7P8EYvA1CWkEdrDQ+8jVH3AgWlCNwjYsT1chjcNW9lA==", "dev": true, "requires": { - "path-is-absolute": "^1.0.0", - "xmlbuilder": "8.2.2" + "jasmine-core": "^3.3" + }, + "dependencies": { + "jasmine-core": { + "version": "3.99.1", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.99.1.tgz", + "integrity": "sha512-Hu1dmuoGcZ7AfyynN3LsfruwMbxMALMka+YtZeGoLuDEySVmVAPaonkNoBRIw/ectu8b9tVQCJNgp4a4knp+tg==", + "dev": true + } } }, "karma-sourcemap-loader": { @@ -10479,15 +10433,6 @@ "graceful-fs": "^4.1.2" } }, - "karma-verbose-reporter": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/karma-verbose-reporter/-/karma-verbose-reporter-0.0.6.tgz", - "integrity": "sha512-xBkQTj7JUByofR1sounBEL0sVKTCBeoiPEMtNBU8Dr/Gtqt6W6XUq2hj36r+EKYHQPPJch7moINsYUWO8moWXQ==", - "dev": true, - "requires": { - "colors": ">=1.0" - } - }, "karma-webpack": { "version": "2.0.13", "resolved": "https://registry.npmjs.org/karma-webpack/-/karma-webpack-2.0.13.tgz", @@ -18579,12 +18524,6 @@ "integrity": "sha512-dTaaRwm4ccF8UF15/PLT3pNNlZP04qko/FUcr0QBppYLk8+J7xA9gg2vI2X4Kr1PcJAVxwI9NdADex29FX2QVQ==", "dev": true }, - "xmlbuilder": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-8.2.2.tgz", - "integrity": "sha512-eKRAFz04jghooy8muekqzo8uCSVNeyRedbuJrp0fovbLIi7wlsYtdUn3vBAAPq2Y3/0xMz2WMEUQ8yhVVO9Stw==", - "dev": true - }, "xmlhttprequest": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz", diff --git a/package.json b/package.json index ca22148b6..6fafa3073 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,9 @@ "fix": "eslint client --ext=jsx --ext=js --ext=tsx --ext=ts --ext=spec --fix", "hint": "eslint client --ext=jsx --ext=js --ext=tsx --ext=ts --ext=spec", "lint": "eslint client --ext=jsx --ext=js --ext=tsx --ext=ts --ext=spec --quiet", - "unit_test": "node --max-old-space-size=8192 ./node_modules/.bin/karma start karma.conf.js --log-level debug --display-error-details --single-run", - "karma": "node --max-old-space-size=8192 ./node_modules/.bin/karma start karma.conf.js", - "test": "npm run hint && npm run unit_test", - "debug_unit_test": "karma start karma.conf.js --browsers=Chrome" + "test": "karma start karma.conf.js --display-error-details --single-run", + "karma": "karma start karma.conf.js", + "debug_unit_test": "karma start karma.conf.js --browsers=Chrome --log-level debug" }, "author": "Edouard Richard", "dependencies": { @@ -38,7 +37,6 @@ "whatwg-fetch": "~2.0.4" }, "devDependencies": { - "@types/jasmine": "^3.10.18", "@types/lodash": "4.14.117", "@types/react": "16.8.23", "@types/react-dom": "16.8.0", @@ -50,15 +48,11 @@ "enzyme-adapter-react-16": "^1.15.8", "eslint": "6.6.0", "eslint-plugin-react": "7.16.0", - "jasmine": "^2.99.0", - "jasmine-reporters": "^2.5.2", - "karma": "^6.3.16", - "karma-chrome-launcher": "2.2.0", - "karma-cli": "^1.0.1", - "karma-jasmine": "^1.1.1", - "karma-junit-reporter": "^1.1.0", - "karma-sourcemap-loader": "^0.3.7", - "karma-verbose-reporter": "0.0.6", + "karma": "^6.4.2", + "karma-chrome-launcher": "^2.2.0", + "karma-cli": "^2.0.0", + "karma-jasmine": "^2.0.0", + "karma-sourcemap-loader": "^0.3.8", "karma-webpack": "^2.0.13", "react-test-renderer": "16.2.0", "simulant": "^0.2.2",