-
Notifications
You must be signed in to change notification settings - Fork 177
add test coverage info #1360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add test coverage info #1360
Changes from all commits
d8953b9
79daf73
141a145
ed28252
ae36d2f
005c317
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -50,6 +50,7 @@ | |||||
| "test:e2e": "npx playwright test", | ||||||
| "test:e2e:update": "npx playwright test --update-snapshots", | ||||||
| "test:unit": "vitest run", | ||||||
| "test:coverage": "vitest run --coverage", | ||||||
| "todesktop:afterPack": "./scripts/todesktop/afterPack.cjs", | ||||||
| "todesktop:beforeInstall": "./scripts/todesktop/beforeInstall.cjs", | ||||||
| "typescript": "tsc -p tsconfig.build.json", | ||||||
|
|
@@ -79,6 +80,7 @@ | |||||
| "@types/wait-on": "^5.3.4", | ||||||
| "@typescript-eslint/eslint-plugin": "^8.20.0", | ||||||
| "@typescript-eslint/parser": "^8.20.0", | ||||||
| "@vitest/coverage-v8": "3.2.4", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Read package.json to verify vitest and @vitest/coverage-v8 versions
cat -n package.json | sed -n '75,110p'Repository: Comfy-Org/desktop Length of output: 1354 🌐 Web query:
💡 Result: The latest published version of @vitest/coverage-v8 is 4.0.16 (tagged latest, published Dec 16, 2025). [1][2] Install: npm i -D @vitest/coverage-v8@4.0.16. Sources: [1] Yarn package page (latest: 4.0.16). [2] Snyk/npm metadata showing 4.0.16. 🌐 Web query:
💡 Result: Short answer: No known security advisories specifically affecting @vitest/coverage-v8 version 3.2.4. Details:
If you want, I can:
Sources: 🌐 Web query:
💡 Result: @vitest/coverage-v8@4.0.16 requires the matching Vitest version (i.e., vitest v4 — use the same version as the coverage package, e.g. vitest@4.0.16). [1][2] Sources: Consider using a caret prefix for version consistency. The version is pinned without a caret ( 🔎 Proposed fix- "@vitest/coverage-v8": "3.2.4",
+ "@vitest/coverage-v8": "^3.2.4",Note: Version 3.2.4 has no security advisories. A newer major version (4.0.16) exists but requires 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "diff": "^7.0.0", | ||||||
| "electron": "31.3.1", | ||||||
| "electron-builder": "^25.1.8", | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Comfy-Org/desktop
Length of output: 43
🏁 Script executed:
Repository: Comfy-Org/desktop
Length of output: 342
🏁 Script executed:
Repository: Comfy-Org/desktop
Length of output: 209
🏁 Script executed:
Repository: Comfy-Org/desktop
Length of output: 87
🏁 Script executed:
Repository: Comfy-Org/desktop
Length of output: 43
🏁 Script executed:
Repository: Comfy-Org/desktop
Length of output: 777
🏁 Script executed:
# Check if vitest configuration is in vite.config.ts cat -n vite.config.tsRepository: Comfy-Org/desktop
Length of output: 2188
🏁 Script executed:
Repository: Comfy-Org/desktop
Length of output: 3091
Add coverage configuration to
vite.config.ts.The
test:coveragescript will run but lacks proper coverage configuration. Thetestobject invite.config.tsneeds acoveragesection specifying the provider (v8), reporter formats, and coverage thresholds. Without this, the coverage command will use incomplete defaults.Additionally, consider removing the caret from
@vitest/coverage-v8(currently pinned to3.2.4) to match the version pinning approach ofvitest(^3.2.4), or vice versa, to ensure both packages update together.🤖 Prompt for AI Agents