Skip to content

Commit 62c3914

Browse files
Farewell jest (#4607)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent c10fbbc commit 62c3914

File tree

291 files changed

+12435
-16793
lines changed

Some content is hidden

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

291 files changed

+12435
-16793
lines changed

.github/actions/setup-node-pnpm/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,21 @@ runs:
2727
uses: pnpm/action-setup@v4
2828
with:
2929
version: ${{ inputs.pnpm-version }}
30+
- name: Get pnpm store directory
31+
shell: bash
32+
run: |
33+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
34+
- name: Setup pnpm cache
35+
uses: actions/cache@v4
36+
with:
37+
path: ${{ env.STORE_PATH }}
38+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
39+
restore-keys: |
40+
${{ runner.os }}-pnpm-store-
3041
- name: Setup Node.js
3142
uses: actions/setup-node@v4
3243
with:
3344
node-version: ${{ inputs.node-version }}
34-
cache: "pnpm"
3545
- name: Install dependencies
3646
if: ${{ inputs.skip-install != 'true' }}
3747
shell: bash

.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 `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
}

0 commit comments

Comments
 (0)