Skip to content

Commit 0678fd2

Browse files
committed
Farewell jest
1 parent c481827 commit 0678fd2

File tree

247 files changed

+4889
-8836
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+4889
-8836
lines changed

.roo/rules/rules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- Before attempting completion, always make sure that any code changes have test coverage
66
- Ensure all tests pass before submitting changes
7+
- 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
8+
- Tests must be run from the same directory as the the `package.json` file that specifies `vitest` in `devDependencies`
79

810
2. Lint Rules:
911

apps/web-evals/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@
5454
"@types/react": "^18.3.23",
5555
"@types/react-dom": "^18.3.5",
5656
"tailwindcss": "^4",
57-
"vitest": "^3.2.1"
57+
"vitest": "^3.2.3"
5858
}
5959
}

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"@roo-code/config-eslint": "workspace:^",
2020
"@roo-code/config-typescript": "workspace:^",
2121
"@types/node": "20.x",
22-
"vitest": "^3.1.3"
22+
"vitest": "^3.2.3"
2323
}
2424
}

packages/cloud/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"@roo-code/config-typescript": "workspace:^",
2222
"@types/node": "20.x",
2323
"@types/vscode": "^1.84.0",
24-
"vitest": "^3.1.3"
24+
"vitest": "^3.2.3"
2525
}
2626
}

packages/cloud/src/__mocks__/vscode.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import { vi } from "vitest"
32

43
export const window = {
54
showInformationMessage: vi.fn(),

packages/cloud/src/__tests__/RefreshTimer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// npx vitest run src/__tests__/RefreshTimer.test.ts
22

3-
import { Mock } from "vitest"
3+
import type { Mock } from "vitest"
44

55
import { RefreshTimer } from "../RefreshTimer"
66

packages/cloud/src/__tests__/ShareService.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
import { describe, it, expect, beforeEach, vi, type MockedFunction } from "vitest"
2+
3+
import type { MockedFunction } from "vitest"
34
import axios from "axios"
45
import * as vscode from "vscode"
56

packages/cloud/src/__tests__/TelemetryClient.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

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

5-
import { describe, it, expect, beforeEach, afterEach, vi } from "vitest"
6-
75
import { type TelemetryPropertiesProvider, TelemetryEventName } from "@roo-code/types"
86

97
import { TelemetryClient } from "../TelemetryClient"

packages/evals/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"@types/ps-tree": "^1.1.6",
4848
"drizzle-kit": "^0.31.1",
4949
"tsx": "^4.19.3",
50-
"vitest": "^3.2.0"
50+
"vitest": "^3.2.3"
5151
}
5252
}

packages/ipc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"@roo-code/config-typescript": "workspace:^",
1919
"@types/node": "20.x",
2020
"@types/node-ipc": "^9.2.3",
21-
"vitest": "^3.1.3"
21+
"vitest": "^3.2.3"
2222
}
2323
}

0 commit comments

Comments
 (0)