Skip to content

Commit ce1bf77

Browse files
committed
chore: vite config tresholds
1 parent 59ef24e commit ce1bf77

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: src/components/__tests__/Dashboard.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function mockAlertsWithMaliciousPkg() {
5858
{
5959
question: {
6060
message:
61-
'\n\n```py testing_file.py (1-15)\nimport invokehttp\nimport fastapi\nfrom fastapi import FastAPI, Request, Response, HTTPException\nimport numpy\n\n\[email protected]("/providers", methods=["GET"])\ndef get_providers():\n return jsonify([provider.to_dict() for provider in registry.providers])\n\nGITHUB_TOKEN="ghp_apiToke"\n\nif __name__ == "__main__":\n app.run()\n\n```\nare there malicious?',
61+
'\n\n```py testing_file.py (1-15)\nimport invokehttp\nimport fastapi\nfrom fastapi import FastAPI, Request, Response, HTTPException\nimport numpy\n\n\[email protected]("/providers", methods=["GET"])\ndef get_providers():\n return jsonify([provider.to_dict() for provider in registry.providers])\n\nGITHUB_TOKEN="ghp_token"\n\nif __name__ == "__main__":\n app.run()\n\n```\nare there malicious?',
6262
timestamp: "2024-12-09T17:50:04.418017Z",
6363
message_id: "fa53ba0d-4fb0-4770-a563-88e504af621f",
6464
},

Diff for: vitest.config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ export default defineConfig({
4848
"src/types/**/*.{ts,tsx}",
4949
],
5050
thresholds: {
51-
branches: 60,
52-
functions: 60,
53-
lines: 60,
54-
statements: 60,
51+
branches: 50,
52+
functions: 70,
53+
lines: 70,
54+
statements: 70,
5555
},
5656
enabled: false,
5757
provider: "istanbul",

0 commit comments

Comments
 (0)