From 4755b81608c5d28af7020da4171d7f1f4d899754 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 10:47:59 +0200 Subject: [PATCH 01/11] Clean up shared deps --- package.json | 7 ------- yarn.lock | 7 ------- 2 files changed, 14 deletions(-) diff --git a/package.json b/package.json index d67bf01..41c8f78 100755 --- a/package.json +++ b/package.json @@ -14,13 +14,6 @@ "unit-testing/*" ], "devDependencies": { - "@siteimprove/alfa-act": "^0.81.0", - "@siteimprove/alfa-assert": "^0.65.2", - "@siteimprove/alfa-formatter": "^0.65.2", - "@siteimprove/alfa-formatter-earl": "^0.65.2", - "@siteimprove/alfa-future": "^0.81.0", - "@siteimprove/alfa-hash": "^0.81.0", - "@siteimprove/alfa-mapper": "^0.81.0", "@types/node": "^20.2.3", "prettier": "^2.2.1", "typescript": "^5.0.4" diff --git a/yarn.lock b/yarn.lock index 4cda0bc..ae4a1a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1634,13 +1634,6 @@ __metadata: version: 0.0.0-use.local resolution: "@siteimprove/alfa-examples@workspace:." dependencies: - "@siteimprove/alfa-act": ^0.81.0 - "@siteimprove/alfa-assert": ^0.65.2 - "@siteimprove/alfa-formatter": ^0.65.2 - "@siteimprove/alfa-formatter-earl": ^0.65.2 - "@siteimprove/alfa-future": ^0.81.0 - "@siteimprove/alfa-hash": ^0.81.0 - "@siteimprove/alfa-mapper": ^0.81.0 "@types/node": ^20.2.3 prettier: ^2.2.1 typescript: ^5.0.4 From dd6a63bf28ef49e5ebc3fcde89b38b7316a7aa59 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 10:50:38 +0200 Subject: [PATCH 02/11] Set up knip --- package.json | 1 + unit-testing/angular/package.json | 4 - yarn.lock | 284 +++++++++++++++++++++++++----- 3 files changed, 239 insertions(+), 50 deletions(-) diff --git a/package.json b/package.json index 41c8f78..3c7b714 100755 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ ], "devDependencies": { "@types/node": "^20.2.3", + "knip": "^5.29.1", "prettier": "^2.2.1", "typescript": "^5.0.4" }, diff --git a/unit-testing/angular/package.json b/unit-testing/angular/package.json index fff62b1..164219d 100644 --- a/unit-testing/angular/package.json +++ b/unit-testing/angular/package.json @@ -29,12 +29,8 @@ "verbose": true }, "dependencies": { - "@angular/common": "^8.2.0", - "@angular/compiler": "^8.2.0", "@angular/core": "^11.0.5", - "@angular/platform-browser": "^8.2.0", "@angular/platform-browser-dynamic": "^8.2.0", - "core-js": "^3.10.1", "rxjs": "^6.6.7", "zone.js": "^0.11.4" }, diff --git a/yarn.lock b/yarn.lock index ae4a1a3..9af84a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15,27 +15,6 @@ __metadata: languageName: node linkType: hard -"@angular/common@npm:^8.2.0": - version: 8.2.14 - resolution: "@angular/common@npm:8.2.14" - dependencies: - tslib: ^1.9.0 - peerDependencies: - "@angular/core": 8.2.14 - rxjs: ^6.4.0 - checksum: 9dffa0f8c7504e55643c760af85b3f4376f3bc8e4b4f230aa17bd89f6a1e573b167ab14e84cecb9250373c92ba6d2ea471c41a2f59f69ac886f57b05cf27a9f2 - languageName: node - linkType: hard - -"@angular/compiler@npm:^8.2.0": - version: 8.2.14 - resolution: "@angular/compiler@npm:8.2.14" - dependencies: - tslib: ^1.9.0 - checksum: 31df6c80ae33e0c35639deb2db64f5150fccc98d5406c1f484c9df3b547b72f6ec4323aa70a783f8e5257366e9a8a8ac160d72d99bc74bd345dc36f671f8c52c - languageName: node - linkType: hard - "@angular/core@npm:^11.0.0, @angular/core@npm:^11.0.5": version: 11.2.14 resolution: "@angular/core@npm:11.2.14" @@ -62,18 +41,6 @@ __metadata: languageName: node linkType: hard -"@angular/platform-browser@npm:^8.2.0": - version: 8.2.14 - resolution: "@angular/platform-browser@npm:8.2.14" - dependencies: - tslib: ^1.9.0 - peerDependencies: - "@angular/common": 8.2.14 - "@angular/core": 8.2.14 - checksum: 2ce766d959483bab161d975308641c541c657c46a78ff486c0cd9ef95c58ee4ba39d066d302c550c65c4d166f45b9c3154735d437bb5e78cff1783d3fe0b8185 - languageName: node - linkType: hard - "@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.21.4": version: 7.21.4 resolution: "@babel/code-frame@npm:7.21.4" @@ -1046,6 +1013,33 @@ __metadata: languageName: node linkType: hard +"@nodelib/fs.scandir@npm:2.1.5": + version: 2.1.5 + resolution: "@nodelib/fs.scandir@npm:2.1.5" + dependencies: + "@nodelib/fs.stat": 2.0.5 + run-parallel: ^1.1.9 + checksum: a970d595bd23c66c880e0ef1817791432dbb7acbb8d44b7e7d0e7a22f4521260d4a83f7f9fd61d44fda4610105577f8f58a60718105fb38352baed612fd79e59 + languageName: node + linkType: hard + +"@nodelib/fs.stat@npm:2.0.5, @nodelib/fs.stat@npm:^2.0.2": + version: 2.0.5 + resolution: "@nodelib/fs.stat@npm:2.0.5" + checksum: 012480b5ca9d97bff9261571dbbec7bbc6033f69cc92908bc1ecfad0792361a5a1994bc48674b9ef76419d056a03efadfce5a6cf6dbc0a36559571a7a483f6f0 + languageName: node + linkType: hard + +"@nodelib/fs.walk@npm:1.2.8, @nodelib/fs.walk@npm:^1.2.3": + version: 1.2.8 + resolution: "@nodelib/fs.walk@npm:1.2.8" + dependencies: + "@nodelib/fs.scandir": 2.1.5 + fastq: ^1.6.0 + checksum: 190c643f156d8f8f277bf2a6078af1ffde1fd43f498f187c2db24d35b4b4b5785c02c7dc52e356497b9a1b65b13edc996de08de0b961c32844364da02986dc53 + languageName: node + linkType: hard + "@npmcli/move-file@npm:^1.0.1": version: 1.1.2 resolution: "@npmcli/move-file@npm:1.1.2" @@ -1635,6 +1629,7 @@ __metadata: resolution: "@siteimprove/alfa-examples@workspace:." dependencies: "@types/node": ^20.2.3 + knip: ^5.29.1 prettier: ^2.2.1 typescript: ^5.0.4 languageName: unknown @@ -2594,6 +2589,19 @@ __metadata: languageName: node linkType: hard +"@snyk/github-codeowners@npm:1.1.0": + version: 1.1.0 + resolution: "@snyk/github-codeowners@npm:1.1.0" + dependencies: + commander: ^4.1.1 + ignore: ^5.1.8 + p-map: ^4.0.0 + bin: + github-codeowners: dist/cli.js + checksum: 133f867fa968f96229ebce724d8aedaa124218e20add96a3a7d39ea45e52007fee50cc90c39e406c9e662483d003da9326e00dc4d612afa5c2ca069d1cdab9d7 + languageName: node + linkType: hard + "@szmarczak/http-timer@npm:^4.0.5": version: 4.0.5 resolution: "@szmarczak/http-timer@npm:4.0.5" @@ -4583,6 +4591,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^4.1.1": + version: 4.1.1 + resolution: "commander@npm:4.1.1" + checksum: d7b9913ff92cae20cb577a4ac6fcc121bd6223319e54a40f51a14740a681ad5c574fd29a57da478a5f234a6fa6c52cbf0b7c641353e03c648b1ae85ba670b977 + languageName: node + linkType: hard + "commander@npm:^5.1.0": version: 5.1.0 resolution: "commander@npm:5.1.0" @@ -4693,13 +4708,6 @@ __metadata: languageName: node linkType: hard -"core-js@npm:^3.10.1": - version: 3.10.1 - resolution: "core-js@npm:3.10.1" - checksum: 5a40a60391763cfe0278727ab98ff3844f531378d611dc288b0efc571f4910f9e96374c98bf57c1e84d40da7220d1e8cd54516727412a14f91314f45f39f33a3 - languageName: node - linkType: hard - "core-util-is@npm:1.0.2, core-util-is@npm:~1.0.0": version: 1.0.2 resolution: "core-util-is@npm:1.0.2" @@ -5480,6 +5488,19 @@ __metadata: languageName: node linkType: hard +"easy-table@npm:1.2.0": + version: 1.2.0 + resolution: "easy-table@npm:1.2.0" + dependencies: + ansi-regex: ^5.0.1 + wcwidth: ^1.0.1 + dependenciesMeta: + wcwidth: + optional: true + checksum: 66961b19751a68d2d30ce9b74ef750c374cc3112bbcac3d1ed5a939e43c035ecf6b1954098df2d5b05f1e853ab2b67de893794390dcbf0abe1f157fddeb52174 + languageName: node + linkType: hard + "easy-table@npm:^1.1.1": version: 1.1.1 resolution: "easy-table@npm:1.1.1" @@ -5653,6 +5674,16 @@ __metadata: languageName: unknown linkType: soft +"enhanced-resolve@npm:^5.17.1": + version: 5.17.1 + resolution: "enhanced-resolve@npm:5.17.1" + dependencies: + graceful-fs: ^4.2.4 + tapable: ^2.2.0 + checksum: 4bc38cf1cea96456f97503db7280394177d1bc46f8f87c267297d04f795ac5efa81e48115a2f5b6273c781027b5b6bfc5f62b54df629e4d25fa7001a86624f59 + languageName: node + linkType: hard + "enquirer@npm:^2.3.6": version: 2.3.6 resolution: "enquirer@npm:2.3.6" @@ -6156,6 +6187,19 @@ __metadata: languageName: node linkType: hard +"fast-glob@npm:^3.3.2": + version: 3.3.2 + resolution: "fast-glob@npm:3.3.2" + dependencies: + "@nodelib/fs.stat": ^2.0.2 + "@nodelib/fs.walk": ^1.2.3 + glob-parent: ^5.1.2 + merge2: ^1.3.0 + micromatch: ^4.0.4 + checksum: 900e4979f4dbc3313840078419245621259f349950411ca2fa445a2f9a1a6d98c3b5e7e0660c5ccd563aa61abe133a21765c6c0dec8e57da1ba71d8000b05ec1 + languageName: node + linkType: hard + "fast-json-stable-stringify@npm:2.x, fast-json-stable-stringify@npm:^2.0.0, fast-json-stable-stringify@npm:^2.1.0": version: 2.1.0 resolution: "fast-json-stable-stringify@npm:2.1.0" @@ -6170,6 +6214,15 @@ __metadata: languageName: node linkType: hard +"fastq@npm:^1.6.0": + version: 1.17.1 + resolution: "fastq@npm:1.17.1" + dependencies: + reusify: ^1.0.4 + checksum: a8c5b26788d5a1763f88bae56a8ddeee579f935a831c5fe7a8268cea5b0a91fbfe705f612209e02d639b881d7b48e461a50da4a10cfaa40da5ca7cc9da098d88 + languageName: node + linkType: hard + "fb-watchman@npm:^2.0.0": version: 2.0.1 resolution: "fb-watchman@npm:2.0.1" @@ -6540,7 +6593,7 @@ __metadata: languageName: node linkType: hard -"glob-parent@npm:~5.1.0": +"glob-parent@npm:^5.1.2, glob-parent@npm:~5.1.0": version: 5.1.2 resolution: "glob-parent@npm:5.1.2" dependencies: @@ -6896,6 +6949,13 @@ __metadata: languageName: node linkType: hard +"ignore@npm:^5.1.8": + version: 5.3.2 + resolution: "ignore@npm:5.3.2" + checksum: 2acfd32a573260ea522ea0bfeff880af426d68f6831f973129e2ba7363f422923cf53aab62f8369cbf4667c7b25b6f8a3761b34ecdb284ea18e87a5262a865be + languageName: node + linkType: hard + "import-fresh@npm:^3.2.1": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" @@ -7931,6 +7991,15 @@ __metadata: languageName: node linkType: hard +"jiti@npm:^1.21.6": + version: 1.21.6 + resolution: "jiti@npm:1.21.6" + bin: + jiti: bin/jiti.js + checksum: 9ea4a70a7bb950794824683ed1c632e2ede26949fbd348e2ba5ec8dc5efa54dc42022d85ae229cadaa60d4b95012e80ea07d625797199b688cc22ab0e8891d32 + languageName: node + linkType: hard + "js-beautify@npm:^1.6.12": version: 1.13.5 resolution: "js-beautify@npm:1.13.5" @@ -8181,6 +8250,36 @@ __metadata: languageName: node linkType: hard +"knip@npm:^5.29.1": + version: 5.29.1 + resolution: "knip@npm:5.29.1" + dependencies: + "@nodelib/fs.walk": 1.2.8 + "@snyk/github-codeowners": 1.1.0 + easy-table: 1.2.0 + enhanced-resolve: ^5.17.1 + fast-glob: ^3.3.2 + jiti: ^1.21.6 + js-yaml: ^4.1.0 + minimist: ^1.2.8 + picocolors: ^1.0.0 + picomatch: ^4.0.1 + pretty-ms: ^9.0.0 + smol-toml: ^1.1.4 + strip-json-comments: 5.0.1 + summary: 2.1.0 + zod: ^3.22.4 + zod-validation-error: ^3.0.3 + peerDependencies: + "@types/node": ">=18" + typescript: ">=5.0.4" + bin: + knip: bin/knip.js + knip-bun: bin/knip-bun.js + checksum: 4028f4baba77c0a6cfe9ca814aa66e751b824d063e8f3f3039bd47543b29337ca55d1e6a3bcbd2bcdc9364284b9e26ca778141a7b5a6d93f010c33fa3dcfb297 + languageName: node + linkType: hard + "ky-universal@npm:^0.11.0": version: 0.11.0 resolution: "ky-universal@npm:0.11.0" @@ -8601,6 +8700,13 @@ __metadata: languageName: node linkType: hard +"merge2@npm:^1.3.0": + version: 1.4.1 + resolution: "merge2@npm:1.4.1" + checksum: 7268db63ed5169466540b6fb947aec313200bcf6d40c5ab722c22e242f651994619bcd85601602972d3c85bd2cc45a358a4c61937e9f11a061919a1da569b0c2 + languageName: node + linkType: hard + "micromatch@npm:^4.0.2, micromatch@npm:^4.0.4": version: 4.0.4 resolution: "micromatch@npm:4.0.4" @@ -9295,6 +9401,13 @@ __metadata: languageName: node linkType: hard +"parse-ms@npm:^4.0.0": + version: 4.0.0 + resolution: "parse-ms@npm:4.0.0" + checksum: 673c801d9f957ff79962d71ed5a24850163f4181a90dd30c4e3666b3a804f53b77f1f0556792e8b2adbb5d58757907d1aa51d7d7dc75997c2a56d72937cbc8b7 + languageName: node + linkType: hard + "parse5-htmlparser2-tree-adapter@npm:^6.0.1": version: 6.0.1 resolution: "parse5-htmlparser2-tree-adapter@npm:6.0.1" @@ -9410,6 +9523,13 @@ __metadata: languageName: node linkType: hard +"picomatch@npm:^4.0.1": + version: 4.0.2 + resolution: "picomatch@npm:4.0.2" + checksum: a7a5188c954f82c6585720e9143297ccd0e35ad8072231608086ca950bee672d51b0ef676254af0788205e59bd4e4deb4e7708769226bed725bf13370a7d1464 + languageName: node + linkType: hard + "pify@npm:^2.0.0, pify@npm:^2.2.0": version: 2.3.0 resolution: "pify@npm:2.3.0" @@ -9522,6 +9642,15 @@ __metadata: languageName: node linkType: hard +"pretty-ms@npm:^9.0.0": + version: 9.1.0 + resolution: "pretty-ms@npm:9.1.0" + dependencies: + parse-ms: ^4.0.0 + checksum: 0f66507467f2005040cccdcb36f35b82674d7809f41c4432009235ed6c920787afa17f621c25b7ccb8ccd80b0840c7b71f7f4a3addb8f0eeef3a033ff1e5cf71 + languageName: node + linkType: hard + "pretty@npm:^2.0.0": version: 2.0.0 resolution: "pretty@npm:2.0.0" @@ -9813,6 +9942,13 @@ __metadata: languageName: node linkType: hard +"queue-microtask@npm:^1.2.2": + version: 1.2.3 + resolution: "queue-microtask@npm:1.2.3" + checksum: b676f8c040cdc5b12723ad2f91414d267605b26419d5c821ff03befa817ddd10e238d22b25d604920340fd73efd8ba795465a0377c4adf45a4a41e4234e42dc4 + languageName: node + linkType: hard + "quick-lru@npm:^5.1.1": version: 5.1.1 resolution: "quick-lru@npm:5.1.1" @@ -10211,6 +10347,13 @@ __metadata: languageName: node linkType: hard +"reusify@npm:^1.0.4": + version: 1.0.4 + resolution: "reusify@npm:1.0.4" + checksum: c3076ebcc22a6bc252cb0b9c77561795256c22b757f40c0d8110b1300723f15ec0fc8685e8d4ea6d7666f36c79ccc793b1939c748bf36f18f542744a4e379fcc + languageName: node + linkType: hard + "rgb2hex@npm:0.2.3": version: 0.2.3 resolution: "rgb2hex@npm:0.2.3" @@ -10260,6 +10403,15 @@ __metadata: languageName: node linkType: hard +"run-parallel@npm:^1.1.9": + version: 1.2.0 + resolution: "run-parallel@npm:1.2.0" + dependencies: + queue-microtask: ^1.2.2 + checksum: cb4f97ad25a75ebc11a8ef4e33bb962f8af8516bb2001082ceabd8902e15b98f4b84b4f8a9b222e5d57fc3bd1379c483886ed4619367a7680dad65316993021d + languageName: node + linkType: hard + "rxjs@npm:^6.6.0, rxjs@npm:^6.6.7": version: 6.6.7 resolution: "rxjs@npm:6.6.7" @@ -10482,6 +10634,13 @@ __metadata: languageName: node linkType: hard +"smol-toml@npm:^1.1.4": + version: 1.3.0 + resolution: "smol-toml@npm:1.3.0" + checksum: 79e1db6b6cd32a13ad7602bfe1a02f20894fe599657a5cc2c8ffab7c3de4ba51f7426b701b513f9b859560918b36a63f7c73f7eaf6def8a1dc73db74ffd9b601 + languageName: node + linkType: hard + "socks-proxy-agent@npm:^5.0.0": version: 5.0.0 resolution: "socks-proxy-agent@npm:5.0.0" @@ -10792,6 +10951,13 @@ __metadata: languageName: node linkType: hard +"strip-json-comments@npm:5.0.1": + version: 5.0.1 + resolution: "strip-json-comments@npm:5.0.1" + checksum: b314af70c6666a71133e309a571bdb87687fc878d9fd8b38ebed393a77b89835b92f191aa6b0bc10dfd028ba99eed6b6365985001d64c5aef32a4a82456a156b + languageName: node + linkType: hard + "suffix@npm:^0.1.0": version: 0.1.1 resolution: "suffix@npm:0.1.1" @@ -10799,6 +10965,13 @@ __metadata: languageName: node linkType: hard +"summary@npm:2.1.0": + version: 2.1.0 + resolution: "summary@npm:2.1.0" + checksum: 10ac12ce12c013b56ad44c37cfac206961f0993d98867b33b1b03a27b38a1cf8dd2db0b788883356c5335bbbb37d953772ef4a381d6fc8f408faf99f2bc54af5 + languageName: node + linkType: hard + "supports-color@npm:8.1.1, supports-color@npm:^8.0.0, supports-color@npm:^8.1.1": version: 8.1.1 resolution: "supports-color@npm:8.1.1" @@ -10840,6 +11013,13 @@ __metadata: languageName: node linkType: hard +"tapable@npm:^2.2.0": + version: 2.2.1 + resolution: "tapable@npm:2.2.1" + checksum: 3b7a1b4d86fa940aad46d9e73d1e8739335efd4c48322cb37d073eb6f80f5281889bf0320c6d8ffcfa1a0dd5bfdbd0f9d037e252ef972aca595330538aac4d51 + languageName: node + linkType: hard + "tar-fs@npm:2.1.1, tar-fs@npm:^2.0.0": version: 2.1.1 resolution: "tar-fs@npm:2.1.1" @@ -11215,17 +11395,13 @@ __metadata: version: 0.0.0-use.local resolution: "unit-testing-angular@workspace:unit-testing/angular" dependencies: - "@angular/common": ^8.2.0 - "@angular/compiler": ^8.2.0 "@angular/core": ^11.0.5 - "@angular/platform-browser": ^8.2.0 "@angular/platform-browser-dynamic": ^8.2.0 "@siteimprove/alfa-angular": ^0.65.2 "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-jest": ^0.65.2 "@siteimprove/alfa-rules": ^0.81.0 "@types/jest": ^29.5.1 - core-js: ^3.10.1 jest: ^29.5.0 jest-environment-jsdom: ^29.5.0 jest-preset-angular: ^13.1.1 @@ -11444,7 +11620,7 @@ __metadata: languageName: node linkType: hard -"wcwidth@npm:>=1.0.1": +"wcwidth@npm:>=1.0.1, wcwidth@npm:^1.0.1": version: 1.0.1 resolution: "wcwidth@npm:1.0.1" dependencies: @@ -12038,6 +12214,22 @@ __metadata: languageName: node linkType: hard +"zod-validation-error@npm:^3.0.3": + version: 3.3.1 + resolution: "zod-validation-error@npm:3.3.1" + peerDependencies: + zod: ^3.18.0 + checksum: b3e5ee3d20cd945af20762fd2780d977c59f7e90c541ab4f1f7c5196fc344df27353224927e5b11bb2b790a4a1e6043e2548194bbea43e1b2ac3779d57182d55 + languageName: node + linkType: hard + +"zod@npm:^3.22.4": + version: 3.23.8 + resolution: "zod@npm:3.23.8" + checksum: 15949ff82118f59c893dacd9d3c766d02b6fa2e71cf474d5aa888570c469dbf5446ac5ad562bb035bf7ac9650da94f290655c194f4a6de3e766f43febd432c5c + languageName: node + linkType: hard + "zone.js@npm:^0.11.4": version: 0.11.4 resolution: "zone.js@npm:0.11.4" From 85fd0164239bf329b5d3255098124561b9d3e471 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 11:02:22 +0200 Subject: [PATCH 03/11] Clean up imports --- unit-testing/react/package.json | 12 +++++------- yarn.lock | 26 ++++++++++++++++++++++---- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/unit-testing/react/package.json b/unit-testing/react/package.json index bf0fd10..1851005 100644 --- a/unit-testing/react/package.json +++ b/unit-testing/react/package.json @@ -16,12 +16,6 @@ "js" ] }, - "dependencies": { - "@types/react": "^17.0.0", - "@types/react-dom": "^17.0.0", - "react": "^17.0.2", - "react-dom": "^17.0.2" - }, "devDependencies": { "@siteimprove/alfa-assert": "^0.65.2", "@siteimprove/alfa-enzyme": "^0.65.2", @@ -30,8 +24,12 @@ "@types/enzyme": "^3.10.5", "@types/enzyme-adapter-react-16": "^1.0.5", "@types/jest": "^29.5.1", + "@types/react": "^17.0.0", + "@types/react-dom": "^17.0.0", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.6", - "jest": "^29.5.0" + "jest": "^29.5.0", + "react": "^17.0.2", + "react-dom": "^17.0.2" } } diff --git a/yarn.lock b/yarn.lock index 9af84a2..0a8e27c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2903,11 +2903,11 @@ __metadata: linkType: hard "@types/react-dom@npm:^17.0.0": - version: 17.0.1 - resolution: "@types/react-dom@npm:17.0.1" + version: 17.0.25 + resolution: "@types/react-dom@npm:17.0.25" dependencies: - "@types/react": "*" - checksum: bbe68efb2936053562785c9495d5cae9ea1fa2b02c93b68458f8ba71517a5f2afcda2629d8a2c073476e4909cf11ca99ad746d9cd5383fbe7c1d61209209870d + "@types/react": ^17 + checksum: d1e582682478e0848c8d54ea3e89d02047bac6d916266b85ce63731b06987575919653ea7159d98fda47ade3362b8c4d5796831549564b83088e7aa9ce8b60ed languageName: node linkType: hard @@ -2930,6 +2930,17 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:^17": + version: 17.0.80 + resolution: "@types/react@npm:17.0.80" + dependencies: + "@types/prop-types": "*" + "@types/scheduler": ^0.16 + csstype: ^3.0.2 + checksum: 1c27bfc42305d77ef0da55f8f6d4c4a3471aa02b294fcf29ea0f2cfb0bf02892e5a0a3bc7559fa4a5ba50697b2e31076cb5aa5987f69cfc2e880f6426edb8bdf + languageName: node + linkType: hard + "@types/request@npm:^2.48.4": version: 2.48.5 resolution: "@types/request@npm:2.48.5" @@ -2958,6 +2969,13 @@ __metadata: languageName: node linkType: hard +"@types/scheduler@npm:^0.16": + version: 0.16.8 + resolution: "@types/scheduler@npm:0.16.8" + checksum: 6c091b096daa490093bf30dd7947cd28e5b2cd612ec93448432b33f724b162587fed9309a0acc104d97b69b1d49a0f3fc755a62282054d62975d53d7fd13472d + languageName: node + linkType: hard + "@types/sinonjs__fake-timers@npm:8.1.1": version: 8.1.1 resolution: "@types/sinonjs__fake-timers@npm:8.1.1" From cfddf8297dbbd9b5811bd5748e944eb2ad3495d4 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 11:10:14 +0200 Subject: [PATCH 04/11] Add basic knip config --- config/knip.ts | 44 ++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 45 insertions(+) create mode 100644 config/knip.ts diff --git a/config/knip.ts b/config/knip.ts new file mode 100644 index 0000000..73f085d --- /dev/null +++ b/config/knip.ts @@ -0,0 +1,44 @@ +import type { KnipConfig } from "knip"; + +const entry = ["test/**/*.spec.ts", "test/**/*.spec.tsx"]; +const project = ["**/*.ts", "**/*.tsx"]; + +const config: KnipConfig = { + workspaces: { + ".": { + entry: ["common/*.ts"], + project: ["common/**/*.ts"], + ignoreDependencies: ["prettier"], + }, + "custom-testing/*": { entry, project }, + "custom-testing/crawling": { entry: ["crawling.ts"], project }, + "custom-testing/measuring-performances": { + entry: ["performance.ts"], + project, + }, + "custom-testing/scraping": { entry: ["scraping.ts"], project }, + "end-to-end-testing/*": { entry, project }, + "unit-testing/*": { entry, project }, + // "packages/alfa-cascade": { + // entry, + // project, + // // For some reason, knip doesn't detect that Bucket is used in the test + // // file and needs to be exported for that. + // ignore: ["src/ancestor-filter.ts"], + // }, + // "packages/alfa-device": { entry: [...entry, "src/native.ts!"], project }, + // "packages/alfa-dom": { + // entry: [ + // ...entry, + // "src/h.ts!", + // "src/jsx.ts!", + // "src/jsx-runtime.ts!", + // "src/native.ts!", + // ], + // project, + // }, + // "packages/alfa-web": { entry: [...entry, "src/native.ts!"], project }, + }, +}; + +export default config; diff --git a/package.json b/package.json index 3c7b714..625e9cf 100755 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "build": "tsc --build", "watch": "tsc --build --watch", "clean": "tsc --build --clean", + "knip": "knip -c config/knip.ts", "test": "yarn workspaces foreach -v -p --exclude 'end-to-end-testing-{cypress,puppeteer,webdriver}' --exclude 'custom-testing-{crawling,scraping,measuring-performance}' --exclude 'unit-testing-angular' run test" }, "workspaces": [ From 50a5d528031a01b38ca4ef1defc1b097d34a99e5 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 12:51:45 +0200 Subject: [PATCH 05/11] Improve Knip config --- common/package.json | 12 ++++++++++++ config/knip.ts | 13 +++++++++++++ .../cypress/{integration => test}/page.spec.ts | 0 end-to-end-testing/cypress/tsconfig.json | 2 +- package.json | 1 + yarn.lock | 12 ++++++++++++ 6 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 common/package.json rename end-to-end-testing/cypress/{integration => test}/page.spec.ts (100%) diff --git a/common/package.json b/common/package.json new file mode 100644 index 0000000..19f91e2 --- /dev/null +++ b/common/package.json @@ -0,0 +1,12 @@ +{ + "$schema": "http://json.schemastore.org/package", + "private": true, + "name": "common", + "devDependencies": { + "@siteimprove/alfa-act": "^0.81.0", + "@siteimprove/alfa-assert": "^0.65.2", + "@siteimprove/alfa-formatter": "^0.65.2", + "@siteimprove/alfa-hash": "^0.81.0", + "@siteimprove/alfa-mapper": "^0.81.0" + } +} diff --git a/config/knip.ts b/config/knip.ts index 73f085d..92ac0e5 100644 --- a/config/knip.ts +++ b/config/knip.ts @@ -18,7 +18,20 @@ const config: KnipConfig = { }, "custom-testing/scraping": { entry: ["scraping.ts"], project }, "end-to-end-testing/*": { entry, project }, + "end-to-end-testing/cypress": { + cypress: { + config: "cypress.json", + entry: [...entry, "support.ts"], + project, + }, + }, + "end-to-end-testing/webdriver": { + "webdriver-io": { config: ["wdio.conf.ts"], entry, project }, + }, "unit-testing/*": { entry, project }, + "unit-testing/angular": { entry: ["components/*.ts", "setup.ts"], project }, + "unit-testing/react": { entry: ["components/*.tsx", "setup.ts"], project }, + "unit-testing/vue": { entry: ["components/*.ts", "setup.ts"], project }, // "packages/alfa-cascade": { // entry, // project, diff --git a/end-to-end-testing/cypress/integration/page.spec.ts b/end-to-end-testing/cypress/test/page.spec.ts similarity index 100% rename from end-to-end-testing/cypress/integration/page.spec.ts rename to end-to-end-testing/cypress/test/page.spec.ts diff --git a/end-to-end-testing/cypress/tsconfig.json b/end-to-end-testing/cypress/tsconfig.json index 37dd458..0cd139e 100644 --- a/end-to-end-testing/cypress/tsconfig.json +++ b/end-to-end-testing/cypress/tsconfig.json @@ -5,5 +5,5 @@ "skipLibCheck": true, "types": ["cypress"] }, - "files": ["integration/page.spec.ts", "support.ts"] + "files": ["test/page.spec.ts", "support.ts"] } diff --git a/package.json b/package.json index 625e9cf..3d32497 100755 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "test": "yarn workspaces foreach -v -p --exclude 'end-to-end-testing-{cypress,puppeteer,webdriver}' --exclude 'custom-testing-{crawling,scraping,measuring-performance}' --exclude 'unit-testing-angular' run test" }, "workspaces": [ + "common", "custom-testing/*", "end-to-end-testing/*", "unit-testing/*" diff --git a/yarn.lock b/yarn.lock index 0a8e27c..3ffe4a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4637,6 +4637,18 @@ __metadata: languageName: node linkType: hard +"common@workspace:common": + version: 0.0.0-use.local + resolution: "common@workspace:common" + dependencies: + "@siteimprove/alfa-act": ^0.81.0 + "@siteimprove/alfa-assert": ^0.65.2 + "@siteimprove/alfa-formatter": ^0.65.2 + "@siteimprove/alfa-hash": ^0.81.0 + "@siteimprove/alfa-mapper": ^0.81.0 + languageName: unknown + linkType: soft + "compare-versions@npm:^6.1.0": version: 6.1.0 resolution: "compare-versions@npm:6.1.0" From 2c2ad744a7f3da8173eba05f4b2ae6a8e2905334 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 12:57:06 +0200 Subject: [PATCH 06/11] Add some missing deps --- common/package.json | 4 ++++ custom-testing/answering/package.json | 2 ++ yarn.lock | 33 ++++++--------------------- 3 files changed, 13 insertions(+), 26 deletions(-) diff --git a/common/package.json b/common/package.json index 19f91e2..3de8d3f 100644 --- a/common/package.json +++ b/common/package.json @@ -8,5 +8,9 @@ "@siteimprove/alfa-formatter": "^0.65.2", "@siteimprove/alfa-hash": "^0.81.0", "@siteimprove/alfa-mapper": "^0.81.0" + }, + "dependencies": { + "@siteimprove/alfa-formatter-earl": "^0.65.2", + "@siteimprove/alfa-future": "^0.81.0" } } diff --git a/custom-testing/answering/package.json b/custom-testing/answering/package.json index c3ea009..ae0cd0e 100644 --- a/custom-testing/answering/package.json +++ b/custom-testing/answering/package.json @@ -7,11 +7,13 @@ }, "devDependencies": { "@siteimprove/alfa-act": "^0.81.0", + "@siteimprove/alfa-chai": "^0.65.2", "@siteimprove/alfa-css": "^0.81.0", "@siteimprove/alfa-dom": "^0.81.0", "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-hash": "^0.81.0", "@siteimprove/alfa-option": "^0.81.0", + "@siteimprove/alfa-playwright": "^0.65.2", "@siteimprove/alfa-refinement": "^0.81.0", "@siteimprove/alfa-rules": "^0.81.0", "@siteimprove/alfa-scraper": "^0.65.2", diff --git a/yarn.lock b/yarn.lock index 3ffe4a8..6c6b893 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2920,17 +2920,7 @@ __metadata: languageName: node linkType: hard -"@types/react@npm:*, @types/react@npm:^17.0.0": - version: 17.0.2 - resolution: "@types/react@npm:17.0.2" - dependencies: - "@types/prop-types": "*" - csstype: ^3.0.2 - checksum: a5198857165feddcbfc7d33e3322460ac62b8894d702414496a825b0c82272911ec33a42ef7c9d623a59308070eef4dfee6ff834b0674aa3f87eeb644196ee3b - languageName: node - linkType: hard - -"@types/react@npm:^17": +"@types/react@npm:*, @types/react@npm:^17, @types/react@npm:^17.0.0": version: 17.0.80 resolution: "@types/react@npm:17.0.80" dependencies: @@ -4644,6 +4634,8 @@ __metadata: "@siteimprove/alfa-act": ^0.81.0 "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-formatter": ^0.65.2 + "@siteimprove/alfa-formatter-earl": ^0.65.2 + "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-hash": ^0.81.0 "@siteimprove/alfa-mapper": ^0.81.0 languageName: unknown @@ -4925,11 +4917,13 @@ __metadata: resolution: "custom-testing-answering@workspace:custom-testing/answering" dependencies: "@siteimprove/alfa-act": ^0.81.0 + "@siteimprove/alfa-chai": ^0.65.2 "@siteimprove/alfa-css": ^0.81.0 "@siteimprove/alfa-dom": ^0.81.0 "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-hash": ^0.81.0 "@siteimprove/alfa-option": ^0.81.0 + "@siteimprove/alfa-playwright": ^0.65.2 "@siteimprove/alfa-refinement": ^0.81.0 "@siteimprove/alfa-rules": ^0.81.0 "@siteimprove/alfa-scraper": ^0.65.2 @@ -5518,7 +5512,7 @@ __metadata: languageName: node linkType: hard -"easy-table@npm:1.2.0": +"easy-table@npm:1.2.0, easy-table@npm:^1.1.1": version: 1.2.0 resolution: "easy-table@npm:1.2.0" dependencies: @@ -5531,19 +5525,6 @@ __metadata: languageName: node linkType: hard -"easy-table@npm:^1.1.1": - version: 1.1.1 - resolution: "easy-table@npm:1.1.1" - dependencies: - ansi-regex: ^3.0.0 - wcwidth: ">=1.0.1" - dependenciesMeta: - wcwidth: - optional: true - checksum: b31ae1c25d6220e8f1e42430c5147258437c86d1ecfef919c6e73f145d7396f8655e5922c51de7f8cc53e55f25a16e3bb3d28b06ffcc80e889faacbf96b590a9 - languageName: node - linkType: hard - "ecc-jsbn@npm:~0.1.1": version: 0.1.2 resolution: "ecc-jsbn@npm:0.1.2" @@ -11650,7 +11631,7 @@ __metadata: languageName: node linkType: hard -"wcwidth@npm:>=1.0.1, wcwidth@npm:^1.0.1": +"wcwidth@npm:^1.0.1": version: 1.0.1 resolution: "wcwidth@npm:1.0.1" dependencies: From d8c3d04ef35a87a384285215e4f92346d4943682 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 12:58:03 +0200 Subject: [PATCH 07/11] Add some missing deps --- unit-testing/angular/package.json | 1 + unit-testing/vue/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/unit-testing/angular/package.json b/unit-testing/angular/package.json index 164219d..b28adf6 100644 --- a/unit-testing/angular/package.json +++ b/unit-testing/angular/package.json @@ -37,6 +37,7 @@ "devDependencies": { "@siteimprove/alfa-angular": "^0.65.2", "@siteimprove/alfa-assert": "^0.65.2", + "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-jest": "^0.65.2", "@siteimprove/alfa-rules": "^0.81.0", "@types/jest": "^29.5.1", diff --git a/unit-testing/vue/package.json b/unit-testing/vue/package.json index 5d1c17e..232266f 100644 --- a/unit-testing/vue/package.json +++ b/unit-testing/vue/package.json @@ -27,6 +27,7 @@ }, "devDependencies": { "@siteimprove/alfa-assert": "^0.65.2", + "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-jest": "^0.65.2", "@siteimprove/alfa-rules": "^0.81.0", "@siteimprove/alfa-vue": "^0.65.2", From 236df67a05681cb6d025fbd3bcde1fbd1c07617d Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 13:12:30 +0200 Subject: [PATCH 08/11] Lift common to a true workspace --- common/package.json | 4 ++++ config/knip.ts | 6 +----- custom-testing/adding-rules/package.json | 1 + custom-testing/adding-rules/test/page.spec.ts | 2 +- custom-testing/answering/package.json | 1 + custom-testing/answering/test/answering.spec.ts | 9 ++++----- custom-testing/filtering/package.json | 1 + custom-testing/filtering/test/filtering.spec.ts | 4 ++-- custom-testing/interacting/package.json | 1 + .../interacting/test/interacting.spec.ts | 2 +- custom-testing/navigating/test/navigating.spec.ts | 2 -- end-to-end-testing/playwright/package.json | 1 + end-to-end-testing/playwright/test/page.spec.ts | 4 ++-- end-to-end-testing/puppeteer/package.json | 1 + end-to-end-testing/puppeteer/test/page.spec.ts | 2 +- end-to-end-testing/webdriver/package.json | 1 + end-to-end-testing/webdriver/test/page.spec.ts | 2 +- unit-testing/angular/package.json | 1 + unit-testing/angular/setup.ts | 2 +- unit-testing/react/package.json | 1 + unit-testing/react/setup.ts | 2 +- unit-testing/vue/package.json | 1 + unit-testing/vue/setup.ts | 2 +- yarn.lock | 14 +++++++++++++- 24 files changed, 43 insertions(+), 24 deletions(-) diff --git a/common/package.json b/common/package.json index 3de8d3f..c37c76c 100644 --- a/common/package.json +++ b/common/package.json @@ -2,6 +2,10 @@ "$schema": "http://json.schemastore.org/package", "private": true, "name": "common", + "exports": { + "./persist": "./persist.js", + "./persist.js": "./persist.js" + }, "devDependencies": { "@siteimprove/alfa-act": "^0.81.0", "@siteimprove/alfa-assert": "^0.65.2", diff --git a/config/knip.ts b/config/knip.ts index 92ac0e5..2beffed 100644 --- a/config/knip.ts +++ b/config/knip.ts @@ -5,11 +5,7 @@ const project = ["**/*.ts", "**/*.tsx"]; const config: KnipConfig = { workspaces: { - ".": { - entry: ["common/*.ts"], - project: ["common/**/*.ts"], - ignoreDependencies: ["prettier"], - }, + common: { entry: "persist.ts", project }, "custom-testing/*": { entry, project }, "custom-testing/crawling": { entry: ["crawling.ts"], project }, "custom-testing/measuring-performances": { diff --git a/custom-testing/adding-rules/package.json b/custom-testing/adding-rules/package.json index 1c391eb..5055123 100755 --- a/custom-testing/adding-rules/package.json +++ b/custom-testing/adding-rules/package.json @@ -18,6 +18,7 @@ "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "chai": "^4.3.4", + "common": "workspace:^", "mocha": "^8.3.2", "playwright": "^1.10.0" } diff --git a/custom-testing/adding-rules/test/page.spec.ts b/custom-testing/adding-rules/test/page.spec.ts index 1a66836..54ac984 100755 --- a/custom-testing/adding-rules/test/page.spec.ts +++ b/custom-testing/adding-rules/test/page.spec.ts @@ -17,7 +17,7 @@ import * as alfa from "@siteimprove/alfa-chai"; import rules from "@siteimprove/alfa-rules"; -import { persist } from "../../../common/persist"; +import { persist } from "common/persist"; const { and } = Refinement; diff --git a/custom-testing/answering/package.json b/custom-testing/answering/package.json index ae0cd0e..8924f83 100644 --- a/custom-testing/answering/package.json +++ b/custom-testing/answering/package.json @@ -21,6 +21,7 @@ "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "chai": "^4.3.4", + "common": "workspace:^", "mocha": "^8.3.2", "playwright": "^1.10.0" } diff --git a/custom-testing/answering/test/answering.spec.ts b/custom-testing/answering/test/answering.spec.ts index da551da..609bb77 100755 --- a/custom-testing/answering/test/answering.spec.ts +++ b/custom-testing/answering/test/answering.spec.ts @@ -2,22 +2,21 @@ /// import * as act from "@siteimprove/alfa-act"; -import { Color, RGB } from "@siteimprove/alfa-css"; +import { Color } from "@siteimprove/alfa-css"; import { Element, Text } from "@siteimprove/alfa-dom"; import { Future } from "@siteimprove/alfa-future"; import { Hashable } from "@siteimprove/alfa-hash"; import { None, Some } from "@siteimprove/alfa-option"; import { Playwright } from "@siteimprove/alfa-playwright"; import { Refinement } from "@siteimprove/alfa-refinement"; -import rules, { Question, Scope } from "@siteimprove/alfa-rules"; -import { Resolver } from "@siteimprove/alfa-style"; +import rules, { Question } from "@siteimprove/alfa-rules"; import * as chai from "chai"; import * as playwright from "playwright"; import * as alfa from "@siteimprove/alfa-chai"; -import { persist } from "../../../common/persist"; +import { persist } from "common/persist"; const { and } = Refinement; @@ -25,7 +24,7 @@ const { and } = Refinement; chai.use( alfa.Chai.createPlugin( (value: Playwright.Type) => Future.from(Playwright.toPage(value)), - rules.filter(rule => !rule.uri.includes("r111")), + rules.filter((rule) => !rule.uri.includes("r111")), [persist(() => "test/outcomes/page.spec.json")] ) ); diff --git a/custom-testing/filtering/package.json b/custom-testing/filtering/package.json index 008f9a1..269de8c 100755 --- a/custom-testing/filtering/package.json +++ b/custom-testing/filtering/package.json @@ -18,6 +18,7 @@ "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "chai": "^4.3.4", + "common": "workspace:^", "mocha": "^8.3.2", "playwright": "^1.10.0" } diff --git a/custom-testing/filtering/test/filtering.spec.ts b/custom-testing/filtering/test/filtering.spec.ts index 630b1f7..d3bafc7 100755 --- a/custom-testing/filtering/test/filtering.spec.ts +++ b/custom-testing/filtering/test/filtering.spec.ts @@ -16,7 +16,7 @@ import * as alfa from "@siteimprove/alfa-chai"; import rules, { Scope } from "@siteimprove/alfa-rules"; -import { persist } from "../../../common/persist"; +import { persist } from "common/persist"; const { and } = Refinement; @@ -24,7 +24,7 @@ const { and } = Refinement; chai.use( alfa.Chai.createPlugin( (value: Playwright.Type) => Future.from(Playwright.toPage(value)), - rules.filter(rule => !rule.uri.includes("r111")), + rules.filter((rule) => !rule.uri.includes("r111")), [persist(() => "test/outcomes/filtering.spec.json")] ) ); diff --git a/custom-testing/interacting/package.json b/custom-testing/interacting/package.json index 92dc85c..bc2645a 100755 --- a/custom-testing/interacting/package.json +++ b/custom-testing/interacting/package.json @@ -13,6 +13,7 @@ "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "chai": "^4.3.4", + "common": "workspace:^", "mocha": "^8.3.2", "playwright": "^1.10.0" } diff --git a/custom-testing/interacting/test/interacting.spec.ts b/custom-testing/interacting/test/interacting.spec.ts index 0d6f9c8..6556e0d 100755 --- a/custom-testing/interacting/test/interacting.spec.ts +++ b/custom-testing/interacting/test/interacting.spec.ts @@ -13,7 +13,7 @@ import * as alfa from "@siteimprove/alfa-chai"; import { Rules } from "@siteimprove/alfa-rules"; const R69 = Rules.get("R69").getUnsafe(); -import { persist } from "../../../common/persist"; +import { persist } from "common/persist"; chai.use( alfa.Chai.createPlugin( diff --git a/custom-testing/navigating/test/navigating.spec.ts b/custom-testing/navigating/test/navigating.spec.ts index 7daef3a..ca466ad 100755 --- a/custom-testing/navigating/test/navigating.spec.ts +++ b/custom-testing/navigating/test/navigating.spec.ts @@ -13,8 +13,6 @@ import * as alfa from "@siteimprove/alfa-chai"; import { Rules } from "@siteimprove/alfa-rules"; const R69 = Rules.get("R69").getUnsafe(); -import { persist } from "../../../common/persist"; - // Creating a Chai plugin which only uses R69. chai.use( alfa.Chai.createPlugin( diff --git a/end-to-end-testing/playwright/package.json b/end-to-end-testing/playwright/package.json index b3c4751..7c7e11e 100644 --- a/end-to-end-testing/playwright/package.json +++ b/end-to-end-testing/playwright/package.json @@ -15,6 +15,7 @@ "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "chai": "^4.3.4", + "common": "workspace:^", "mocha": "^8.3.2", "playwright": "^1.10.0" } diff --git a/end-to-end-testing/playwright/test/page.spec.ts b/end-to-end-testing/playwright/test/page.spec.ts index 40acb77..b04154b 100644 --- a/end-to-end-testing/playwright/test/page.spec.ts +++ b/end-to-end-testing/playwright/test/page.spec.ts @@ -10,12 +10,12 @@ import { Playwright } from "@siteimprove/alfa-playwright"; import * as alfa from "@siteimprove/alfa-chai"; import rules from "@siteimprove/alfa-rules"; -import { persist } from "../../../common/persist"; +import { persist } from "common/persist"; chai.use( alfa.Chai.createPlugin( (value: Playwright.Type) => Future.from(Playwright.toPage(value)), - rules.filter(rule => !rule.uri.includes("r111")), + rules.filter((rule) => !rule.uri.includes("r111")), [persist(() => "test/outcomes/page.spec.json")] ) ); diff --git a/end-to-end-testing/puppeteer/package.json b/end-to-end-testing/puppeteer/package.json index 03edaa6..f55bffb 100644 --- a/end-to-end-testing/puppeteer/package.json +++ b/end-to-end-testing/puppeteer/package.json @@ -14,6 +14,7 @@ "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "chai": "^4.3.4", + "common": "workspace:^", "mocha": "^8.3.2", "puppeteer": "^8.0.0" } diff --git a/end-to-end-testing/puppeteer/test/page.spec.ts b/end-to-end-testing/puppeteer/test/page.spec.ts index 322df82..d0dcc21 100644 --- a/end-to-end-testing/puppeteer/test/page.spec.ts +++ b/end-to-end-testing/puppeteer/test/page.spec.ts @@ -9,7 +9,7 @@ import { Puppeteer } from "@siteimprove/alfa-puppeteer"; import * as alfa from "@siteimprove/alfa-chai"; import rules from "@siteimprove/alfa-rules"; -import { persist } from "../../../common/persist"; +import { persist } from "common/persist"; chai.use( alfa.Chai.createPlugin( diff --git a/end-to-end-testing/webdriver/package.json b/end-to-end-testing/webdriver/package.json index d0b0a56..d9f91d9 100644 --- a/end-to-end-testing/webdriver/package.json +++ b/end-to-end-testing/webdriver/package.json @@ -19,6 +19,7 @@ "@wdio/spec-reporter": "^7.1.1", "chai": "^4.3.4", "chromedriver": "^119.0.1", + "common": "workspace:^", "mocha": "^8.3.2", "ts-node": "^9.1.1", "wdio-chromedriver-service": "^7.0.0", diff --git a/end-to-end-testing/webdriver/test/page.spec.ts b/end-to-end-testing/webdriver/test/page.spec.ts index 7ff2080..cbba1be 100644 --- a/end-to-end-testing/webdriver/test/page.spec.ts +++ b/end-to-end-testing/webdriver/test/page.spec.ts @@ -6,7 +6,7 @@ import { WebElement } from "@siteimprove/alfa-webdriver"; import * as alfa from "@siteimprove/alfa-chai"; import rules from "@siteimprove/alfa-rules"; -import { persist } from "../../../common/persist"; +import { persist } from "common/persist"; chai.use( alfa.Chai.createPlugin( diff --git a/unit-testing/angular/package.json b/unit-testing/angular/package.json index b28adf6..394df2b 100644 --- a/unit-testing/angular/package.json +++ b/unit-testing/angular/package.json @@ -41,6 +41,7 @@ "@siteimprove/alfa-jest": "^0.65.2", "@siteimprove/alfa-rules": "^0.81.0", "@types/jest": "^29.5.1", + "common": "workspace:^", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "jest-preset-angular": "^13.1.1" diff --git a/unit-testing/angular/setup.ts b/unit-testing/angular/setup.ts index 7303d61..026acf3 100644 --- a/unit-testing/angular/setup.ts +++ b/unit-testing/angular/setup.ts @@ -16,7 +16,7 @@ global.TextEncoder = TextEncoder; import { Rules } from "@siteimprove/alfa-rules"; const R12 = Rules.get("R12").getUnsafe(); -import { persist } from "../../common/persist"; +import { persist } from "common/persist"; alfa.Jest.createPlugin( (value: Angular.Type) => Future.from(Angular.toPage(value)), diff --git a/unit-testing/react/package.json b/unit-testing/react/package.json index 1851005..9cd9ae7 100644 --- a/unit-testing/react/package.json +++ b/unit-testing/react/package.json @@ -26,6 +26,7 @@ "@types/jest": "^29.5.1", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", + "common": "workspace:^", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.6", "jest": "^29.5.0", diff --git a/unit-testing/react/setup.ts b/unit-testing/react/setup.ts index a79d629..e02b25c 100644 --- a/unit-testing/react/setup.ts +++ b/unit-testing/react/setup.ts @@ -9,7 +9,7 @@ const R12 = Rules.get("R12").getUnsafe(); import * as enzyme from "enzyme"; import Adapter from "enzyme-adapter-react-16"; -import { persist } from "../../common/persist"; +import { persist } from "common/persist"; enzyme.configure({ adapter: new Adapter() }); diff --git a/unit-testing/vue/package.json b/unit-testing/vue/package.json index 232266f..0d40b7d 100644 --- a/unit-testing/vue/package.json +++ b/unit-testing/vue/package.json @@ -33,6 +33,7 @@ "@siteimprove/alfa-vue": "^0.65.2", "@types/jest": "^29.5.1", "@vue/test-utils": "^1.0.0-beta.29", + "common": "workspace:^", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0" } diff --git a/unit-testing/vue/setup.ts b/unit-testing/vue/setup.ts index 8b54bd3..8382caf 100644 --- a/unit-testing/vue/setup.ts +++ b/unit-testing/vue/setup.ts @@ -14,7 +14,7 @@ global.TextEncoder = TextEncoder; import { Rules } from "@siteimprove/alfa-rules"; const R12 = Rules.get("R12").getUnsafe(); -import { persist } from "../../common/persist"; +import { persist } from "common/persist"; alfa.Jest.createPlugin( (value: Vue.Type) => Future.from(Vue.toPage(value)), diff --git a/yarn.lock b/yarn.lock index 6c6b893..aa56a66 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4627,7 +4627,7 @@ __metadata: languageName: node linkType: hard -"common@workspace:common": +"common@workspace:^, common@workspace:common": version: 0.0.0-use.local resolution: "common@workspace:common" dependencies: @@ -4907,6 +4907,7 @@ __metadata: "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 chai: ^4.3.4 + common: "workspace:^" mocha: ^8.3.2 playwright: ^1.10.0 languageName: unknown @@ -4931,6 +4932,7 @@ __metadata: "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 chai: ^4.3.4 + common: "workspace:^" mocha: ^8.3.2 playwright: ^1.10.0 languageName: unknown @@ -4964,6 +4966,7 @@ __metadata: "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 chai: ^4.3.4 + common: "workspace:^" mocha: ^8.3.2 playwright: ^1.10.0 languageName: unknown @@ -4980,6 +4983,7 @@ __metadata: "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 chai: ^4.3.4 + common: "workspace:^" mocha: ^8.3.2 playwright: ^1.10.0 languageName: unknown @@ -5639,6 +5643,7 @@ __metadata: "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 chai: ^4.3.4 + common: "workspace:^" mocha: ^8.3.2 playwright: ^1.10.0 languageName: unknown @@ -5656,6 +5661,7 @@ __metadata: "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 chai: ^4.3.4 + common: "workspace:^" mocha: ^8.3.2 puppeteer: ^8.0.0 languageName: unknown @@ -5678,6 +5684,7 @@ __metadata: "@wdio/spec-reporter": ^7.1.1 chai: ^4.3.4 chromedriver: ^119.0.1 + common: "workspace:^" mocha: ^8.3.2 ts-node: ^9.1.1 wdio-chromedriver-service: ^7.0.0 @@ -11410,9 +11417,11 @@ __metadata: "@angular/platform-browser-dynamic": ^8.2.0 "@siteimprove/alfa-angular": ^0.65.2 "@siteimprove/alfa-assert": ^0.65.2 + "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-jest": ^0.65.2 "@siteimprove/alfa-rules": ^0.81.0 "@types/jest": ^29.5.1 + common: "workspace:^" jest: ^29.5.0 jest-environment-jsdom: ^29.5.0 jest-preset-angular: ^13.1.1 @@ -11434,6 +11443,7 @@ __metadata: "@types/jest": ^29.5.1 "@types/react": ^17.0.0 "@types/react-dom": ^17.0.0 + common: "workspace:^" enzyme: ^3.11.0 enzyme-adapter-react-16: ^1.15.6 jest: ^29.5.0 @@ -11447,11 +11457,13 @@ __metadata: resolution: "unit-testing-vue@workspace:unit-testing/vue" dependencies: "@siteimprove/alfa-assert": ^0.65.2 + "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-jest": ^0.65.2 "@siteimprove/alfa-rules": ^0.81.0 "@siteimprove/alfa-vue": ^0.65.2 "@types/jest": ^29.5.1 "@vue/test-utils": ^1.0.0-beta.29 + common: "workspace:^" jest: ^29.5.0 jest-environment-jsdom: ^29.5.0 vue: ^2.6.12 From 2f8d16de6a66ce1f402a5037caf141f963024f7c Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Mon, 2 Sep 2024 13:24:19 +0200 Subject: [PATCH 09/11] Set up knip --- .github/workflows/integrate.yml | 1 + config/knip.ts | 24 +- custom-testing/answering/package.json | 2 - end-to-end-testing/playwright/package.json | 2 - end-to-end-testing/puppeteer/package.json | 1 - end-to-end-testing/webdriver/package.json | 4 - unit-testing/angular/package.json | 1 - unit-testing/react/package.json | 1 - unit-testing/vue/package.json | 1 - yarn.lock | 399 +-------------------- 10 files changed, 12 insertions(+), 424 deletions(-) diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index 7d4d7f0..04f5aef 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -30,3 +30,4 @@ jobs: - run: yarn dedupe --check - run: yarn build - run: yarn test + - run: yarn knip diff --git a/config/knip.ts b/config/knip.ts index 2beffed..8971f7f 100644 --- a/config/knip.ts +++ b/config/knip.ts @@ -4,6 +4,7 @@ const entry = ["test/**/*.spec.ts", "test/**/*.spec.tsx"]; const project = ["**/*.ts", "**/*.tsx"]; const config: KnipConfig = { + ignoreDependencies: ["prettier"], workspaces: { common: { entry: "persist.ts", project }, "custom-testing/*": { entry, project }, @@ -23,30 +24,15 @@ const config: KnipConfig = { }, "end-to-end-testing/webdriver": { "webdriver-io": { config: ["wdio.conf.ts"], entry, project }, + ignoreDependencies: [ + // imported through the config file + "chromedriver", + ], }, "unit-testing/*": { entry, project }, "unit-testing/angular": { entry: ["components/*.ts", "setup.ts"], project }, "unit-testing/react": { entry: ["components/*.tsx", "setup.ts"], project }, "unit-testing/vue": { entry: ["components/*.ts", "setup.ts"], project }, - // "packages/alfa-cascade": { - // entry, - // project, - // // For some reason, knip doesn't detect that Bucket is used in the test - // // file and needs to be exported for that. - // ignore: ["src/ancestor-filter.ts"], - // }, - // "packages/alfa-device": { entry: [...entry, "src/native.ts!"], project }, - // "packages/alfa-dom": { - // entry: [ - // ...entry, - // "src/h.ts!", - // "src/jsx.ts!", - // "src/jsx-runtime.ts!", - // "src/native.ts!", - // ], - // project, - // }, - // "packages/alfa-web": { entry: [...entry, "src/native.ts!"], project }, }, }; diff --git a/custom-testing/answering/package.json b/custom-testing/answering/package.json index 8924f83..fd97d7f 100644 --- a/custom-testing/answering/package.json +++ b/custom-testing/answering/package.json @@ -16,8 +16,6 @@ "@siteimprove/alfa-playwright": "^0.65.2", "@siteimprove/alfa-refinement": "^0.81.0", "@siteimprove/alfa-rules": "^0.81.0", - "@siteimprove/alfa-scraper": "^0.65.2", - "@siteimprove/alfa-style": "^0.81.0", "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "chai": "^4.3.4", diff --git a/end-to-end-testing/playwright/package.json b/end-to-end-testing/playwright/package.json index 7c7e11e..574b62e 100644 --- a/end-to-end-testing/playwright/package.json +++ b/end-to-end-testing/playwright/package.json @@ -6,9 +6,7 @@ "test": "mocha --timeout 10000" }, "devDependencies": { - "@siteimprove/alfa-assert": "^0.65.2", "@siteimprove/alfa-chai": "^0.65.2", - "@siteimprove/alfa-formatter-earl": "^0.65.2", "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-playwright": "^0.65.2", "@siteimprove/alfa-rules": "^0.81.0", diff --git a/end-to-end-testing/puppeteer/package.json b/end-to-end-testing/puppeteer/package.json index f55bffb..0abe85f 100644 --- a/end-to-end-testing/puppeteer/package.json +++ b/end-to-end-testing/puppeteer/package.json @@ -6,7 +6,6 @@ "test": "mocha -t 10000" }, "devDependencies": { - "@siteimprove/alfa-assert": "^0.65.2", "@siteimprove/alfa-chai": "^0.65.2", "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-puppeteer": "^0.65.2", diff --git a/end-to-end-testing/webdriver/package.json b/end-to-end-testing/webdriver/package.json index d9f91d9..9e8a321 100644 --- a/end-to-end-testing/webdriver/package.json +++ b/end-to-end-testing/webdriver/package.json @@ -6,7 +6,6 @@ "test": "wdio wdio.conf.js" }, "devDependencies": { - "@siteimprove/alfa-assert": "^0.65.2", "@siteimprove/alfa-chai": "^0.65.2", "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-rules": "^0.81.0", @@ -14,15 +13,12 @@ "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "@wdio/cli": "^5.14.4", - "@wdio/local-runner": "^7.1.1", "@wdio/mocha-framework": "^7.1.1", "@wdio/spec-reporter": "^7.1.1", "chai": "^4.3.4", "chromedriver": "^119.0.1", "common": "workspace:^", "mocha": "^8.3.2", - "ts-node": "^9.1.1", - "wdio-chromedriver-service": "^7.0.0", "webdriverio": "^7.3.1" } } diff --git a/unit-testing/angular/package.json b/unit-testing/angular/package.json index 394df2b..1069d65 100644 --- a/unit-testing/angular/package.json +++ b/unit-testing/angular/package.json @@ -36,7 +36,6 @@ }, "devDependencies": { "@siteimprove/alfa-angular": "^0.65.2", - "@siteimprove/alfa-assert": "^0.65.2", "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-jest": "^0.65.2", "@siteimprove/alfa-rules": "^0.81.0", diff --git a/unit-testing/react/package.json b/unit-testing/react/package.json index 9cd9ae7..f8ab412 100644 --- a/unit-testing/react/package.json +++ b/unit-testing/react/package.json @@ -17,7 +17,6 @@ ] }, "devDependencies": { - "@siteimprove/alfa-assert": "^0.65.2", "@siteimprove/alfa-enzyme": "^0.65.2", "@siteimprove/alfa-jest": "^0.65.2", "@siteimprove/alfa-rules": "^0.81.0", diff --git a/unit-testing/vue/package.json b/unit-testing/vue/package.json index 0d40b7d..8f29c2b 100644 --- a/unit-testing/vue/package.json +++ b/unit-testing/vue/package.json @@ -26,7 +26,6 @@ "vue-template-compiler": "^2.6.12" }, "devDependencies": { - "@siteimprove/alfa-assert": "^0.65.2", "@siteimprove/alfa-future": "^0.81.0", "@siteimprove/alfa-jest": "^0.65.2", "@siteimprove/alfa-rules": "^0.81.0", diff --git a/yarn.lock b/yarn.lock index aa56a66..653feb9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -389,25 +389,6 @@ __metadata: languageName: node linkType: hard -"@babel/runtime-corejs3@npm:^7.10.2": - version: 7.13.9 - resolution: "@babel/runtime-corejs3@npm:7.13.9" - dependencies: - core-js-pure: ^3.0.0 - regenerator-runtime: ^0.13.4 - checksum: 910929987cb916b312b6051a542c12f87bba41ff07cf705e5632b378b5fe232d9dd48e4ab62a170a4bc266d000952da3ff7c209300b95b2fa9099a3aeb6240f2 - languageName: node - linkType: hard - -"@babel/runtime@npm:^7.10.2": - version: 7.13.9 - resolution: "@babel/runtime@npm:7.13.9" - dependencies: - regenerator-runtime: ^0.13.4 - checksum: 3ac9450e53f1092a44e9077c19a0e69310b23680ec66a83cef32b71be9228d983127467bd11d9f02c9389134721bf0512935a150000ad676edaebfad176b3257 - languageName: node - linkType: hard - "@babel/template@npm:^7.20.7, @babel/template@npm:^7.3.3": version: 7.21.9 resolution: "@babel/template@npm:7.21.9" @@ -2632,13 +2613,6 @@ __metadata: languageName: node linkType: hard -"@types/aria-query@npm:^4.2.1": - version: 4.2.1 - resolution: "@types/aria-query@npm:4.2.1" - checksum: cf60cc7aa0ed52514e8c7289776de9bb3321217d48f54c95d63e1e1eb9940689c1fd3e39d68da5eaee1541108363f0113007f67d6e32e7fbc983526f08e5f0ce - languageName: node - linkType: hard - "@types/aria-query@npm:^5.0.0": version: 5.0.0 resolution: "@types/aria-query@npm:5.0.0" @@ -2994,15 +2968,6 @@ __metadata: languageName: node linkType: hard -"@types/stream-buffers@npm:^3.0.3": - version: 3.0.3 - resolution: "@types/stream-buffers@npm:3.0.3" - dependencies: - "@types/node": "*" - checksum: c3456fa2a18f89d31c54fe169621d8288a9735fb7e92aba45786642659d93be26fa0b4caa5c1043b21f4cfaeeefc24d247fa833586a8a0f3aecedf03adb7b5ac - languageName: node - linkType: hard - "@types/tough-cookie@npm:*": version: 4.0.0 resolution: "@types/tough-cookie@npm:4.0.0" @@ -3117,18 +3082,6 @@ __metadata: languageName: node linkType: hard -"@wdio/config@npm:7.1.1": - version: 7.1.1 - resolution: "@wdio/config@npm:7.1.1" - dependencies: - "@wdio/logger": 7.0.0 - "@wdio/types": 7.1.1 - deepmerge: ^4.0.0 - glob: ^7.1.2 - checksum: 4381e26ec637818c9cafe9529e774f66b98a8fdb073b501157e693ec823725aa35237c7998d343c42e21b3c7ae8f02ce7b090dda10e048b1c92ad6ef67aa6459 - languageName: node - linkType: hard - "@wdio/config@npm:7.31.1": version: 7.31.1 resolution: "@wdio/config@npm:7.31.1" @@ -3143,23 +3096,6 @@ __metadata: languageName: node linkType: hard -"@wdio/local-runner@npm:^7.1.1": - version: 7.1.1 - resolution: "@wdio/local-runner@npm:7.1.1" - dependencies: - "@types/stream-buffers": ^3.0.3 - "@wdio/logger": 7.0.0 - "@wdio/repl": 7.1.1 - "@wdio/runner": 7.1.1 - "@wdio/types": 7.1.1 - async-exit-hook: ^2.0.1 - stream-buffers: ^3.0.2 - peerDependencies: - "@wdio/cli": ^7.0.0 - checksum: fa024f4a2e3c24f03dc712ac52c5bf9ee5c41997c12b0a8e1c1bd80eb9f668b493ca7299c070c7543e3fc0ced96ad8ec60110c8bc11fd322a4343b6588be3951 - languageName: node - linkType: hard - "@wdio/logger@npm:5.16.10": version: 5.16.10 resolution: "@wdio/logger@npm:5.16.10" @@ -3217,13 +3153,6 @@ __metadata: languageName: node linkType: hard -"@wdio/protocols@npm:7.1.1": - version: 7.1.1 - resolution: "@wdio/protocols@npm:7.1.1" - checksum: 8ce7e76dbfb0b98db0e2fa226d6f00207f1a55abb0af01357f7e519a6be9b6d403baabe3706b59a603453990ea1db6dce514949208ac3064020658e863598b8a - languageName: node - linkType: hard - "@wdio/protocols@npm:7.27.0": version: 7.27.0 resolution: "@wdio/protocols@npm:7.27.0" @@ -3240,15 +3169,6 @@ __metadata: languageName: node linkType: hard -"@wdio/repl@npm:7.1.1": - version: 7.1.1 - resolution: "@wdio/repl@npm:7.1.1" - dependencies: - "@wdio/utils": 7.1.1 - checksum: e7ab92582dee7ba9b944857c985041d2751796baff70fe3dd0c9e5246dc90da8195270b20b03a41a5328ae53a51d807c4fe08afb3c1ca72b7e47b8f859d789e3 - languageName: node - linkType: hard - "@wdio/repl@npm:7.30.2": version: 7.30.2 resolution: "@wdio/repl@npm:7.30.2" @@ -3269,22 +3189,6 @@ __metadata: languageName: node linkType: hard -"@wdio/runner@npm:7.1.1": - version: 7.1.1 - resolution: "@wdio/runner@npm:7.1.1" - dependencies: - "@wdio/config": 7.1.1 - "@wdio/logger": 7.0.0 - "@wdio/types": 7.1.1 - "@wdio/utils": 7.1.1 - deepmerge: ^4.0.0 - gaze: ^1.1.2 - webdriver: 7.1.1 - webdriverio: 7.1.1 - checksum: 5c61fe8da37c2eeeea7388cadbae20da09132885d91b5bcb045d1b7232b4aed58f12e23ec5035667dcd7a53759e958c68697be60da4866c701061bf8cb307c5f - languageName: node - linkType: hard - "@wdio/spec-reporter@npm:^7.1.1": version: 7.1.1 resolution: "@wdio/spec-reporter@npm:7.1.1" @@ -3631,13 +3535,6 @@ __metadata: languageName: node linkType: hard -"arg@npm:^4.1.0": - version: 4.1.3 - resolution: "arg@npm:4.1.3" - checksum: 544af8dd3f60546d3e4aff084d451b96961d2267d668670199692f8d054f0415d86fc5497d0e641e91546f0aa920e7c29e5250e99fc89f5552a34b5d93b77f43 - languageName: node - linkType: hard - "argparse@npm:^1.0.7": version: 1.0.10 resolution: "argparse@npm:1.0.10" @@ -3654,16 +3551,6 @@ __metadata: languageName: node linkType: hard -"aria-query@npm:^4.2.2": - version: 4.2.2 - resolution: "aria-query@npm:4.2.2" - dependencies: - "@babel/runtime": ^7.10.2 - "@babel/runtime-corejs3": ^7.10.2 - checksum: 38401a9a400f26f3dcc24b84997461a16b32869a9893d323602bed8da40a8bcc0243b8d2880e942249a1496cea7a7de769e93d21c0baa439f01e1ee936fed665 - languageName: node - linkType: hard - "aria-query@npm:^5.0.0": version: 5.0.0 resolution: "aria-query@npm:5.0.0" @@ -3773,15 +3660,6 @@ __metadata: languageName: node linkType: hard -"atob@npm:^2.1.2": - version: 2.1.2 - resolution: "atob@npm:2.1.2" - bin: - atob: bin/atob.js - checksum: dfeeeb70090c5ebea7be4b9f787f866686c645d9f39a0d184c817252d0cf08455ed25267d79c03254d3be1f03ac399992a792edcd5ffb9c91e097ab5ef42833a - languageName: node - linkType: hard - "aws-sign2@npm:~0.7.0": version: 0.7.0 resolution: "aws-sign2@npm:0.7.0" @@ -4333,20 +4211,6 @@ __metadata: languageName: node linkType: hard -"chrome-launcher@npm:^0.13.1": - version: 0.13.4 - resolution: "chrome-launcher@npm:0.13.4" - dependencies: - "@types/node": "*" - escape-string-regexp: ^1.0.5 - is-wsl: ^2.2.0 - lighthouse-logger: ^1.0.0 - mkdirp: ^0.5.3 - rimraf: ^3.0.2 - checksum: 9da52a74f53242f7b281290cdccc7ba3902984933f88ab0f489b5e868ba4e939b82cf72669527ed38a4425bd3602fc6ba8fa4c00d197a0d99aab4c1779c45dd5 - languageName: node - linkType: hard - "chrome-launcher@npm:^0.15.0": version: 0.15.0 resolution: "chrome-launcher@npm:0.15.0" @@ -4723,13 +4587,6 @@ __metadata: languageName: node linkType: hard -"core-js-pure@npm:^3.0.0": - version: 3.10.1 - resolution: "core-js-pure@npm:3.10.1" - checksum: 3352d0613f2168d604e3937b262d6d8b8494cd509d628662bae83139a8a0800b1ca317b897552108466ba4f831af36a816a4b5502660ae29b74c28634bc59efb - languageName: node - linkType: hard - "core-util-is@npm:1.0.2, core-util-is@npm:~1.0.0": version: 1.0.2 resolution: "core-util-is@npm:1.0.2" @@ -4790,13 +4647,6 @@ __metadata: languageName: node linkType: hard -"create-require@npm:^1.1.0": - version: 1.1.1 - resolution: "create-require@npm:1.1.1" - checksum: a9a1503d4390d8b59ad86f4607de7870b39cad43d929813599a23714831e81c520bddf61bcdd1f8e30f05fd3a2b71ae8538e946eb2786dc65c2bbc520f692eff - languageName: node - linkType: hard - "cross-fetch@npm:3.1.5": version: 3.1.5 resolution: "cross-fetch@npm:3.1.5" @@ -4927,8 +4777,6 @@ __metadata: "@siteimprove/alfa-playwright": ^0.65.2 "@siteimprove/alfa-refinement": ^0.81.0 "@siteimprove/alfa-rules": ^0.81.0 - "@siteimprove/alfa-scraper": ^0.65.2 - "@siteimprove/alfa-style": ^0.81.0 "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 chai: ^4.3.4 @@ -5353,13 +5201,6 @@ __metadata: languageName: node linkType: hard -"devtools-protocol@npm:0.0.847576": - version: 0.0.847576 - resolution: "devtools-protocol@npm:0.0.847576" - checksum: 96e003fc3c03d1dee584ea42b19d54b117160e9eaec25fed3f752c60f22ad1ea49c4a9060a52a6f98805e170ce443d07026dac480f10fd1d6c37efec72c65d62 - languageName: node - linkType: hard - "devtools-protocol@npm:0.0.854822": version: 0.0.854822 resolution: "devtools-protocol@npm:0.0.854822" @@ -5381,31 +5222,6 @@ __metadata: languageName: node linkType: hard -"devtools-protocol@npm:^0.0.856957": - version: 0.0.856957 - resolution: "devtools-protocol@npm:0.0.856957" - checksum: 9a292f81c36f0a51df0142ee56d4de9e7df45aec8e00f6413ebbea3b4b3c050018d28a028655eb000de4bf9c8fdcef40902619cde808a4829241c3e3542f5baf - languageName: node - linkType: hard - -"devtools@npm:7.1.1": - version: 7.1.1 - resolution: "devtools@npm:7.1.1" - dependencies: - "@wdio/config": 7.1.1 - "@wdio/logger": 7.0.0 - "@wdio/protocols": 7.1.1 - "@wdio/types": 7.1.1 - "@wdio/utils": 7.1.1 - chrome-launcher: ^0.13.1 - edge-paths: ^2.1.0 - puppeteer-core: ^7.1.0 - ua-parser-js: ^0.7.21 - uuid: ^8.0.0 - checksum: 07d436581c312c52674eeca967aacee23167b5338a436bd286ab718d551f84c887f07d8d585a580972fad1a44269106a5eaa95d3ac8a51c9a76571be7e5847a1 - languageName: node - linkType: hard - "devtools@npm:7.31.1": version: 7.31.1 resolution: "devtools@npm:7.31.1" @@ -5448,13 +5264,6 @@ __metadata: languageName: node linkType: hard -"diff@npm:^4.0.1": - version: 4.0.2 - resolution: "diff@npm:4.0.2" - checksum: f2c09b0ce4e6b301c221addd83bf3f454c0bc00caa3dd837cf6c127d6edf7223aa2bbe3b688feea110b7f262adbfc845b757c44c8a9f8c0c5b15d8fa9ce9d20d - languageName: node - linkType: hard - "discontinuous-range@npm:1.0.0": version: 1.0.0 resolution: "discontinuous-range@npm:1.0.0" @@ -5634,9 +5443,7 @@ __metadata: version: 0.0.0-use.local resolution: "end-to-end-testing-playwright@workspace:end-to-end-testing/playwright" dependencies: - "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-chai": ^0.65.2 - "@siteimprove/alfa-formatter-earl": ^0.65.2 "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-playwright": ^0.65.2 "@siteimprove/alfa-rules": ^0.81.0 @@ -5653,7 +5460,6 @@ __metadata: version: 0.0.0-use.local resolution: "end-to-end-testing-puppeteer@workspace:end-to-end-testing/puppeteer" dependencies: - "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-chai": ^0.65.2 "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-puppeteer": ^0.65.2 @@ -5671,7 +5477,6 @@ __metadata: version: 0.0.0-use.local resolution: "end-to-end-testing-webdriver@workspace:end-to-end-testing/webdriver" dependencies: - "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-chai": ^0.65.2 "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-rules": ^0.81.0 @@ -5679,15 +5484,12 @@ __metadata: "@types/chai": ^4.2.3 "@types/mocha": ^5.2.7 "@wdio/cli": ^5.14.4 - "@wdio/local-runner": ^7.1.1 "@wdio/mocha-framework": ^7.1.1 "@wdio/spec-reporter": ^7.1.1 chai: ^4.3.4 chromedriver: ^119.0.1 common: "workspace:^" mocha: ^8.3.2 - ts-node: ^9.1.1 - wdio-chromedriver-service: ^7.0.0 webdriverio: ^7.3.1 languageName: unknown linkType: soft @@ -6433,7 +6235,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^9.0.0, fs-extra@npm:^9.0.1, fs-extra@npm:^9.1.0": +"fs-extra@npm:^9.0.0, fs-extra@npm:^9.1.0": version: 9.1.0 resolution: "fs-extra@npm:9.1.0" dependencies: @@ -6522,15 +6324,6 @@ __metadata: languageName: node linkType: hard -"gaze@npm:^1.1.2": - version: 1.1.3 - resolution: "gaze@npm:1.1.3" - dependencies: - globule: ^1.0.0 - checksum: d5fd375a029c07346154806a076bde21290598179d01ffbe7bc3e54092fa65814180bd27fc2b577582737733eec77cdbb7a572a4e73dff934dde60317223cde6 - languageName: node - linkType: hard - "gensync@npm:^1.0.0-beta.2": version: 1.0.0-beta.2 resolution: "gensync@npm:1.0.0-beta.2" @@ -6570,13 +6363,6 @@ __metadata: languageName: node linkType: hard -"get-port@npm:^5.1.1": - version: 5.1.1 - resolution: "get-port@npm:5.1.1" - checksum: 0162663ffe5c09e748cd79d97b74cd70e5a5c84b760a475ce5767b357fb2a57cb821cee412d646aa8a156ed39b78aab88974eddaa9e5ee926173c036c0713787 - languageName: node - linkType: hard - "get-stream@npm:^5.0.0, get-stream@npm:^5.1.0": version: 5.2.0 resolution: "get-stream@npm:5.2.0" @@ -6620,7 +6406,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:7.1.6, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:~7.1.1": +"glob@npm:7.1.6, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4": version: 7.1.6 resolution: "glob@npm:7.1.6" dependencies: @@ -6663,17 +6449,6 @@ __metadata: languageName: node linkType: hard -"globule@npm:^1.0.0": - version: 1.3.2 - resolution: "globule@npm:1.3.2" - dependencies: - glob: ~7.1.1 - lodash: ~4.17.10 - minimatch: ~3.0.2 - checksum: 2e79c8c0bb8405c92abe43d633b737a511b4791fbca21646adf0dae2ff27c2a95a702347808cd4292e7730668e95fa5de164811f40f86f1774b7a9ff8ed0d1ec - languageName: node - linkType: hard - "got@npm:^11.0.2, got@npm:^11.8.1": version: 11.8.2 resolution: "got@npm:11.8.2" @@ -8531,7 +8306,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.21, lodash@npm:~4.17.10": +"lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.21": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7 @@ -8658,7 +8433,7 @@ __metadata: languageName: node linkType: hard -"make-error@npm:1.x, make-error@npm:^1.1.1": +"make-error@npm:1.x": version: 1.3.6 resolution: "make-error@npm:1.3.6" checksum: b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402 @@ -8779,7 +8554,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:3.0.4, minimatch@npm:^3.0.4, minimatch@npm:~3.0.2": +"minimatch@npm:3.0.4, minimatch@npm:^3.0.4": version: 3.0.4 resolution: "minimatch@npm:3.0.4" dependencies: @@ -8897,17 +8672,6 @@ __metadata: languageName: node linkType: hard -"mkdirp@npm:^0.5.3": - version: 0.5.5 - resolution: "mkdirp@npm:0.5.5" - dependencies: - minimist: ^1.2.5 - bin: - mkdirp: bin/cmd.js - checksum: 3bce20ea525f9477befe458ab85284b0b66c8dc3812f94155af07c827175948cdd8114852ac6c6d82009b13c1048c37f6d98743eb019651ee25c39acc8aabe7d - languageName: node - linkType: hard - "mkdirp@npm:^1.0.3, mkdirp@npm:^1.0.4": version: 1.0.4 resolution: "mkdirp@npm:1.0.4" @@ -9862,26 +9626,6 @@ __metadata: languageName: node linkType: hard -"puppeteer-core@npm:^7.1.0": - version: 7.1.0 - resolution: "puppeteer-core@npm:7.1.0" - dependencies: - debug: ^4.1.0 - devtools-protocol: 0.0.847576 - extract-zip: ^2.0.0 - https-proxy-agent: ^5.0.0 - node-fetch: ^2.6.1 - pkg-dir: ^4.2.0 - progress: ^2.0.1 - proxy-from-env: ^1.1.0 - rimraf: ^3.0.2 - tar-fs: ^2.0.0 - unbzip2-stream: ^1.3.3 - ws: ^7.2.3 - checksum: cf2ba3a5a0c4788899ed212874279f150f9d37d10745191ba0d7089a93a367df79da55f0ea8af0efb0235993b14cbdfb3438ec2284b00ed92d2e905828e8508a - languageName: node - linkType: hard - "puppeteer@npm:^19.9.1": version: 19.11.1 resolution: "puppeteer@npm:19.11.1" @@ -10181,13 +9925,6 @@ __metadata: languageName: node linkType: hard -"regenerator-runtime@npm:^0.13.4": - version: 0.13.8 - resolution: "regenerator-runtime@npm:0.13.8" - checksum: 5f89699ab578301e3f47fe323d2a9e19ed4b7302481b37ce96843602be3a5cb1e5b66a07c1500e69d4710c1dd6fa3b3f3e56d188ef56df4c17a744d853ac36ed - languageName: node - linkType: hard - "request-progress@npm:^3.0.0": version: 3.0.0 resolution: "request-progress@npm:3.0.0" @@ -10372,13 +10109,6 @@ __metadata: languageName: node linkType: hard -"rgb2hex@npm:0.2.3": - version: 0.2.3 - resolution: "rgb2hex@npm:0.2.3" - checksum: 469e8146c3edd8fd27358ed744ee6febd53723ff4741e982521e83431a60fa7a4a7908fddd2ec4d806e024405b651a97524472bccea9059d994d69ed1d3f1950 - languageName: node - linkType: hard - "rgb2hex@npm:0.2.5": version: 0.2.5 resolution: "rgb2hex@npm:0.2.5" @@ -10690,16 +10420,6 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:^0.5.17": - version: 0.5.19 - resolution: "source-map-support@npm:0.5.19" - dependencies: - buffer-from: ^1.0.0 - source-map: ^0.6.0 - checksum: c72802fdba9cb62b92baef18cc14cc4047608b77f0353e6c36dd993444149a466a2845332c5540d4a6630957254f0f68f4ef5a0120c33d2e83974c51a05afbac - languageName: node - linkType: hard - "source-map@npm:^0.6.0, source-map@npm:^0.6.1, source-map@npm:~0.6.1": version: 0.6.1 resolution: "source-map@npm:0.6.1" @@ -10787,13 +10507,6 @@ __metadata: languageName: node linkType: hard -"stream-buffers@npm:^3.0.2": - version: 3.0.2 - resolution: "stream-buffers@npm:3.0.2" - checksum: b09fdeea606e3113ebd0e07010ed0cf038608fa396130add9e45deaff5cc3ba845dc25c31ad24f8341f85907846344cb7c85f75ea52c6572e2ac646e9b6072d0 - languageName: node - linkType: hard - "streamsearch@npm:^1.1.0": version: 1.1.0 resolution: "streamsearch@npm:1.1.0" @@ -11231,27 +10944,6 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:^9.1.1": - version: 9.1.1 - resolution: "ts-node@npm:9.1.1" - dependencies: - arg: ^4.1.0 - create-require: ^1.1.0 - diff: ^4.0.1 - make-error: ^1.1.1 - source-map-support: ^0.5.17 - yn: 3.1.1 - peerDependencies: - typescript: ">=2.7" - bin: - ts-node: dist/bin.js - ts-node-script: dist/bin-script.js - ts-node-transpile-only: dist/bin-transpile.js - ts-script: dist/bin-script-deprecated.js - checksum: 356e2647b8b1e6ab00380c0537fa569b63bd9b6f006cc40fd650f81fae1817bd8fecc075300036950d8f45c1d85b95be33cd1e48a1a424a7d86c3dbb42bf60e5 - languageName: node - linkType: hard - "tslib@npm:^1.9.0": version: 1.14.1 resolution: "tslib@npm:1.14.1" @@ -11346,13 +11038,6 @@ __metadata: languageName: node linkType: hard -"ua-parser-js@npm:^0.7.21": - version: 0.7.27 - resolution: "ua-parser-js@npm:0.7.27" - checksum: 4ed082cf1a013ee90137e89cb35f8d8a5c1b746415a2ae14e5db536e5d9da70d96de144b915e47a1bcaadfb92c718c48a848d2d3018030b83f564dfcb1987e7e - languageName: node - linkType: hard - "ua-parser-js@npm:^1.0.1": version: 1.0.2 resolution: "ua-parser-js@npm:1.0.2" @@ -11416,7 +11101,6 @@ __metadata: "@angular/core": ^11.0.5 "@angular/platform-browser-dynamic": ^8.2.0 "@siteimprove/alfa-angular": ^0.65.2 - "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-jest": ^0.65.2 "@siteimprove/alfa-rules": ^0.81.0 @@ -11434,7 +11118,6 @@ __metadata: version: 0.0.0-use.local resolution: "unit-testing-react@workspace:unit-testing/react" dependencies: - "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-enzyme": ^0.65.2 "@siteimprove/alfa-jest": ^0.65.2 "@siteimprove/alfa-rules": ^0.81.0 @@ -11456,7 +11139,6 @@ __metadata: version: 0.0.0-use.local resolution: "unit-testing-vue@workspace:unit-testing/vue" dependencies: - "@siteimprove/alfa-assert": ^0.65.2 "@siteimprove/alfa-future": ^0.81.0 "@siteimprove/alfa-jest": ^0.65.2 "@siteimprove/alfa-rules": ^0.81.0 @@ -11558,7 +11240,7 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^8.0.0, uuid@npm:^8.3.2": +"uuid@npm:^8.3.2": version: 8.3.2 resolution: "uuid@npm:8.3.2" bin: @@ -11652,18 +11334,6 @@ __metadata: languageName: node linkType: hard -"wdio-chromedriver-service@npm:^7.0.0": - version: 7.0.0 - resolution: "wdio-chromedriver-service@npm:7.0.0" - dependencies: - fs-extra: ^9.1.0 - peerDependencies: - "@wdio/cli": ^7.0.0 - chromedriver: "*" - checksum: 2736a3242aa33265ac1e2d9cc33028a626e35114ddee7a25f6a94d87946c0d4f4b375ebe28068bf1d898ced643ee2c7dfcb83fdc3edc7a137236a69a31279d93 - languageName: node - linkType: hard - "web-streams-polyfill@npm:^3.0.3": version: 3.2.1 resolution: "web-streams-polyfill@npm:3.2.1" @@ -11686,21 +11356,6 @@ __metadata: languageName: node linkType: hard -"webdriver@npm:7.1.1": - version: 7.1.1 - resolution: "webdriver@npm:7.1.1" - dependencies: - "@wdio/config": 7.1.1 - "@wdio/logger": 7.0.0 - "@wdio/protocols": 7.1.1 - "@wdio/types": 7.1.1 - "@wdio/utils": 7.1.1 - got: ^11.0.2 - lodash.merge: ^4.6.1 - checksum: fefde4e3b5079f169e6f324698742b8bfc4acd4bbbf01bd76e268b892a238542be9ffae59eceb806a9f08ad8511d6762b918c8c2c27ae41645d6cacc9648aea7 - languageName: node - linkType: hard - "webdriver@npm:7.31.1": version: 7.31.1 resolution: "webdriver@npm:7.31.1" @@ -11741,41 +11396,6 @@ __metadata: languageName: node linkType: hard -"webdriverio@npm:7.1.1": - version: 7.1.1 - resolution: "webdriverio@npm:7.1.1" - dependencies: - "@types/aria-query": ^4.2.1 - "@wdio/config": 7.1.1 - "@wdio/logger": 7.0.0 - "@wdio/protocols": 7.1.1 - "@wdio/repl": 7.1.1 - "@wdio/types": 7.1.1 - "@wdio/utils": 7.1.1 - archiver: ^5.0.0 - aria-query: ^4.2.2 - atob: ^2.1.2 - css-shorthand-properties: ^1.1.1 - css-value: ^0.0.1 - devtools: 7.1.1 - devtools-protocol: ^0.0.856957 - fs-extra: ^9.0.1 - get-port: ^5.1.1 - grapheme-splitter: ^1.0.2 - lodash.clonedeep: ^4.5.0 - lodash.isobject: ^3.0.2 - lodash.isplainobject: ^4.0.6 - lodash.zip: ^4.2.0 - minimatch: ^3.0.4 - puppeteer-core: ^7.1.0 - resq: ^1.9.1 - rgb2hex: 0.2.3 - serialize-error: ^8.0.0 - webdriver: 7.1.1 - checksum: 222b09385cf911e6e900912a1db73fbdf1b4951f825d3a28e284be43cc76422a7b35074db354a52cd38ffd42e668c1aac66b46ff6a42b9acf2f529d9815e015e - languageName: node - linkType: hard - "webdriverio@npm:^7.20.5, webdriverio@npm:^7.3.1": version: 7.31.1 resolution: "webdriverio@npm:7.31.1" @@ -12201,13 +11821,6 @@ __metadata: languageName: node linkType: hard -"yn@npm:3.1.1": - version: 3.1.1 - resolution: "yn@npm:3.1.1" - checksum: 2c487b0e149e746ef48cda9f8bad10fc83693cd69d7f9dcd8be4214e985de33a29c9e24f3c0d6bcf2288427040a8947406ab27f7af67ee9456e6b84854f02dd6 - languageName: node - linkType: hard - "yocto-queue@npm:^0.1.0": version: 0.1.0 resolution: "yocto-queue@npm:0.1.0" From 3de9a4f20793e715d09fc173a997a0cb640d1516 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Tue, 3 Sep 2024 13:37:28 +0200 Subject: [PATCH 10/11] Trigger CodeQL From ce97738eb13af4b0cb11a7fd9335ee75a02e122c Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Tue, 3 Sep 2024 13:40:17 +0200 Subject: [PATCH 11/11] Trigger CodeQL