Skip to content

Commit

Permalink
chore: vite config tresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
peppescg committed Jan 9, 2025
1 parent 59ef24e commit ce1bf77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/__tests__/Dashboard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function mockAlertsWithMaliciousPkg() {
{
question: {
message:
'\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?',
'\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?',
timestamp: "2024-12-09T17:50:04.418017Z",
message_id: "fa53ba0d-4fb0-4770-a563-88e504af621f",
},
Expand Down
8 changes: 4 additions & 4 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export default defineConfig({
"src/types/**/*.{ts,tsx}",
],
thresholds: {
branches: 60,
functions: 60,
lines: 60,
statements: 60,
branches: 50,
functions: 70,
lines: 70,
statements: 70,
},
enabled: false,
provider: "istanbul",
Expand Down

0 comments on commit ce1bf77

Please sign in to comment.