Skip to content

Commit

Permalink
Fix knip issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Sep 4, 2024
1 parent dcf7506 commit 2db9576
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 2 deletions.
5 changes: 4 additions & 1 deletion config/knip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const config: KnipConfig = {
"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 },
"unit-testing/vue": {
entry: ["components/*.ts", "jsdom-environment.ts", "setup.ts"],
project,
},
},
};

Expand Down
2 changes: 1 addition & 1 deletion unit-testing/vue/jsdom-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {

import JSDOMEnvironment from "jest-environment-jsdom";

export class MyJSDOMEnvironment extends JSDOMEnvironment.default {
class MyJSDOMEnvironment extends JSDOMEnvironment.default {
constructor(config: JestEnvironmentConfig, context: EnvironmentContext) {
super(config, context);

Expand Down
1 change: 1 addition & 0 deletions unit-testing/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"vue-template-compiler": "^2.6.12"
},
"devDependencies": {
"@jest/environment": "^29.7.0",
"@siteimprove/alfa-future": "^0.81.0",
"@siteimprove/alfa-jest": "^0.65.2",
"@siteimprove/alfa-rules": "^0.81.0",
Expand Down
110 changes: 110 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,18 @@ __metadata:
languageName: node
linkType: hard

"@jest/environment@npm:^29.7.0":
version: 29.7.0
resolution: "@jest/environment@npm:29.7.0"
dependencies:
"@jest/fake-timers": ^29.7.0
"@jest/types": ^29.6.3
"@types/node": "*"
jest-mock: ^29.7.0
checksum: 6fb398143b2543d4b9b8d1c6dbce83fa5247f84f550330604be744e24c2bd2178bb893657d62d1b97cf2f24baf85c450223f8237cccb71192c36a38ea2272934
languageName: node
linkType: hard

"@jest/expect-utils@npm:^29.5.0":
version: 29.5.0
resolution: "@jest/expect-utils@npm:29.5.0"
Expand Down Expand Up @@ -802,6 +814,20 @@ __metadata:
languageName: node
linkType: hard

"@jest/fake-timers@npm:^29.7.0":
version: 29.7.0
resolution: "@jest/fake-timers@npm:29.7.0"
dependencies:
"@jest/types": ^29.6.3
"@sinonjs/fake-timers": ^10.0.2
"@types/node": "*"
jest-message-util: ^29.7.0
jest-mock: ^29.7.0
jest-util: ^29.7.0
checksum: caf2bbd11f71c9241b458d1b5a66cbe95debc5a15d96442444b5d5c7ba774f523c76627c6931cca5e10e76f0d08761f6f1f01a608898f4751a0eee54fc3d8d00
languageName: node
linkType: hard

"@jest/globals@npm:^29.5.0":
version: 29.5.0
resolution: "@jest/globals@npm:29.5.0"
Expand Down Expand Up @@ -860,6 +886,15 @@ __metadata:
languageName: node
linkType: hard

"@jest/schemas@npm:^29.6.3":
version: 29.6.3
resolution: "@jest/schemas@npm:29.6.3"
dependencies:
"@sinclair/typebox": ^0.27.8
checksum: 910040425f0fc93cd13e68c750b7885590b8839066dfa0cd78e7def07bbb708ad869381f725945d66f2284de5663bbecf63e8fdd856e2ae6e261ba30b1687e93
languageName: node
linkType: hard

"@jest/source-map@npm:^29.4.3":
version: 29.4.3
resolution: "@jest/source-map@npm:29.4.3"
Expand Down Expand Up @@ -945,6 +980,20 @@ __metadata:
languageName: node
linkType: hard

"@jest/types@npm:^29.6.3":
version: 29.6.3
resolution: "@jest/types@npm:29.6.3"
dependencies:
"@jest/schemas": ^29.6.3
"@types/istanbul-lib-coverage": ^2.0.0
"@types/istanbul-reports": ^3.0.0
"@types/node": "*"
"@types/yargs": ^17.0.8
chalk: ^4.0.0
checksum: a0bcf15dbb0eca6bdd8ce61a3fb055349d40268622a7670a3b2eb3c3dbafe9eb26af59938366d520b86907b9505b0f9b29b85cec11579a9e580694b87cd90fcc
languageName: node
linkType: hard

"@jridgewell/gen-mapping@npm:^0.3.0, @jridgewell/gen-mapping@npm:^0.3.2":
version: 0.3.3
resolution: "@jridgewell/gen-mapping@npm:0.3.3"
Expand Down Expand Up @@ -1061,6 +1110,13 @@ __metadata:
languageName: node
linkType: hard

"@sinclair/typebox@npm:^0.27.8":
version: 0.27.8
resolution: "@sinclair/typebox@npm:0.27.8"
checksum: 00bd7362a3439021aa1ea51b0e0d0a0e8ca1351a3d54c606b115fdcc49b51b16db6e5f43b4fe7a28c38688523e22a94d49dd31168868b655f0d4d50f032d07a1
languageName: node
linkType: hard

"@sindresorhus/is@npm:^4.0.0":
version: 4.0.0
resolution: "@sindresorhus/is@npm:4.0.0"
Expand Down Expand Up @@ -7530,6 +7586,23 @@ __metadata:
languageName: node
linkType: hard

"jest-message-util@npm:^29.7.0":
version: 29.7.0
resolution: "jest-message-util@npm:29.7.0"
dependencies:
"@babel/code-frame": ^7.12.13
"@jest/types": ^29.6.3
"@types/stack-utils": ^2.0.0
chalk: ^4.0.0
graceful-fs: ^4.2.9
micromatch: ^4.0.4
pretty-format: ^29.7.0
slash: ^3.0.0
stack-utils: ^2.0.3
checksum: a9d025b1c6726a2ff17d54cc694de088b0489456c69106be6b615db7a51b7beb66788bea7a59991a019d924fbf20f67d085a445aedb9a4d6760363f4d7d09930
languageName: node
linkType: hard

"jest-mock@npm:^29.5.0":
version: 29.5.0
resolution: "jest-mock@npm:29.5.0"
Expand All @@ -7541,6 +7614,17 @@ __metadata:
languageName: node
linkType: hard

"jest-mock@npm:^29.7.0":
version: 29.7.0
resolution: "jest-mock@npm:29.7.0"
dependencies:
"@jest/types": ^29.6.3
"@types/node": "*"
jest-util: ^29.7.0
checksum: 81ba9b68689a60be1482212878973700347cb72833c5e5af09895882b9eb5c4e02843a1bbdf23f94c52d42708bab53a30c45a3482952c9eec173d1eaac5b86c5
languageName: node
linkType: hard

"jest-pnp-resolver@npm:^1.2.2":
version: 1.2.2
resolution: "jest-pnp-resolver@npm:1.2.2"
Expand Down Expand Up @@ -7723,6 +7807,20 @@ __metadata:
languageName: node
linkType: hard

"jest-util@npm:^29.7.0":
version: 29.7.0
resolution: "jest-util@npm:29.7.0"
dependencies:
"@jest/types": ^29.6.3
"@types/node": "*"
chalk: ^4.0.0
ci-info: ^3.2.0
graceful-fs: ^4.2.9
picomatch: ^2.2.3
checksum: 042ab4980f4ccd4d50226e01e5c7376a8556b472442ca6091a8f102488c0f22e6e8b89ea874111d2328a2080083bf3225c86f3788c52af0bd0345a00eb57a3ca
languageName: node
linkType: hard

"jest-validate@npm:^29.5.0":
version: 29.5.0
resolution: "jest-validate@npm:29.5.0"
Expand Down Expand Up @@ -9415,6 +9513,17 @@ __metadata:
languageName: node
linkType: hard

"pretty-format@npm:^29.7.0":
version: 29.7.0
resolution: "pretty-format@npm:29.7.0"
dependencies:
"@jest/schemas": ^29.6.3
ansi-styles: ^5.0.0
react-is: ^18.0.0
checksum: 032c1602383e71e9c0c02a01bbd25d6759d60e9c7cf21937dde8357aa753da348fcec5def5d1002c9678a8524d5fe099ad98861286550ef44de8808cc61e43b6
languageName: node
linkType: hard

"pretty-ms@npm:^7.0.0":
version: 7.0.1
resolution: "pretty-ms@npm:7.0.1"
Expand Down Expand Up @@ -11139,6 +11248,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "unit-testing-vue@workspace:unit-testing/vue"
dependencies:
"@jest/environment": ^29.7.0
"@siteimprove/alfa-future": ^0.81.0
"@siteimprove/alfa-jest": ^0.65.2
"@siteimprove/alfa-rules": ^0.81.0
Expand Down

0 comments on commit 2db9576

Please sign in to comment.