Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .roo/rules/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

- Before attempting completion, always make sure that any code changes have test coverage
- Ensure all tests pass before submitting changes
- The vitest framework is used for testing; the `describe`, `test`, `it`, etc functions are defined by default in `tsconfig.json` and therefore don't need to be imported
- Tests must be run from the same directory as the the `package.json` file that specifies `vitest` in `devDependencies`

2. Lint Rules:

Expand Down
2 changes: 1 addition & 1 deletion apps/web-evals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
"@types/react": "^18.3.23",
"@types/react-dom": "^18.3.5",
"tailwindcss": "^4",
"vitest": "^3.2.1"
"vitest": "^3.2.3"
}
}
2 changes: 1 addition & 1 deletion packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@roo-code/config-eslint": "workspace:^",
"@roo-code/config-typescript": "workspace:^",
"@types/node": "20.x",
"vitest": "^3.1.3"
"vitest": "^3.2.3"
}
}
2 changes: 1 addition & 1 deletion packages/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"@roo-code/config-typescript": "workspace:^",
"@types/node": "20.x",
"@types/vscode": "^1.84.0",
"vitest": "^3.1.3"
"vitest": "^3.2.3"
}
}
1 change: 0 additions & 1 deletion packages/cloud/src/__mocks__/vscode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { vi } from "vitest"

export const window = {
showInformationMessage: vi.fn(),
Expand Down
2 changes: 1 addition & 1 deletion packages/cloud/src/__tests__/RefreshTimer.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// npx vitest run src/__tests__/RefreshTimer.test.ts

import { Mock } from "vitest"
import type { Mock } from "vitest"

import { RefreshTimer } from "../RefreshTimer"

Expand Down
3 changes: 2 additions & 1 deletion packages/cloud/src/__tests__/ShareService.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { describe, it, expect, beforeEach, vi, type MockedFunction } from "vitest"

import type { MockedFunction } from "vitest"
import axios from "axios"
import * as vscode from "vscode"

Expand Down
2 changes: 0 additions & 2 deletions packages/cloud/src/__tests__/TelemetryClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

// npx vitest run src/__tests__/TelemetryClient.test.ts

import { describe, it, expect, beforeEach, afterEach, vi } from "vitest"

import { type TelemetryPropertiesProvider, TelemetryEventName } from "@roo-code/types"

import { TelemetryClient } from "../TelemetryClient"
Expand Down
2 changes: 1 addition & 1 deletion packages/evals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"@types/ps-tree": "^1.1.6",
"drizzle-kit": "^0.31.1",
"tsx": "^4.19.3",
"vitest": "^3.2.0"
"vitest": "^3.2.3"
}
}
2 changes: 1 addition & 1 deletion packages/ipc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@roo-code/config-typescript": "workspace:^",
"@types/node": "20.x",
"@types/node-ipc": "^9.2.3",
"vitest": "^3.1.3"
"vitest": "^3.2.3"
}
}
2 changes: 1 addition & 1 deletion packages/telemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@roo-code/config-typescript": "workspace:^",
"@types/node": "20.x",
"@types/vscode": "^1.84.0",
"vitest": "^3.1.3"
"vitest": "^3.2.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// npx vitest run src/__tests__/PostHogTelemetryClient.test.ts

import { describe, it, expect, beforeEach, vi } from "vitest"
import * as vscode from "vscode"
import { PostHog } from "posthog-node"

Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"@roo-code/config-typescript": "workspace:^",
"@types/node": "20.x",
"tsup": "^8.3.5",
"vitest": "^3.1.3"
"vitest": "^3.2.3"
}
}
Loading