Skip to content

Commit e73193d

Browse files
committed
Fix e2e tests
1 parent e0f46d6 commit e73193d

File tree

6 files changed

+152
-140
lines changed

6 files changed

+152
-140
lines changed

.vscodeignore

Lines changed: 2 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,2 @@
1-
# Default
2-
.changeset/**
3-
.github/**
4-
.husky/**
5-
.vscode/**
6-
coverage/**
7-
node_modules/**
8-
src/**
9-
scripts/**
10-
.gitignore
11-
esbuild.js
12-
jest.*
13-
**/tsconfig.json
14-
**/.eslintrc.json
15-
.prettierignore
16-
**/*.map
17-
**/*.ts
18-
**/.gitignore
19-
20-
# Custom
21-
.env.sample
22-
.git-blame-ignore-revs
23-
.gitconfig
24-
.gitattributes
25-
.tool-versions
26-
.vite-port
27-
.nvmrc
28-
.clinerules*
29-
.roomodes
30-
.rooignore
31-
.roo/**
32-
benchmark/**
33-
cline_docs/**
34-
e2e/**
35-
evals/**
36-
locales/**
37-
out/**
38-
ellipsis.yaml
39-
knip.json
40-
41-
# Ignore all webview-ui files except the build directory.
42-
# https://github.com/microsoft/vscode-webview-ui-toolkit-samples/blob/main/frameworks/hello-world-react-cra/.vscodeignore
43-
webview-ui/src/**
44-
webview-ui/public/**
45-
webview-ui/scripts/**
46-
webview-ui/index.html
47-
webview-ui/README.md
48-
webview-ui/package.json
49-
webview-ui/package-lock.json
50-
webview-ui/node_modules/**
51-
52-
# Include codicons
53-
!node_modules/@vscode/codicons/dist/codicon.css
54-
!node_modules/@vscode/codicons/dist/codicon.ttf
55-
56-
# Include material icons
57-
!node_modules/vscode-material-icons/generated/**
58-
59-
# Include default themes JSON files used in getTheme
60-
!src/integrations/theme/default-themes/**
61-
62-
# Ignore doc assets
63-
assets/docs/**
64-
65-
# Include icons and images
66-
!assets/icons/**
67-
!assets/images/**
68-
69-
# Include .env file for telemetry
70-
!.env
1+
*
2+
!dist

e2e/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"lint": "eslint --max-warnings=0 src/**/*.ts",
66
"check-types": "tsc --noEmit",
77
"format": "prettier --write src",
8-
"test:quick": "pnpm build && npx dotenvx run -f .env.local -- node ./out/runTest.js",
9-
"test:ci": "pnpm --filter @roo-code/vscode compile && pnpm --filter @roo-code/vscode-webview build && pnpm test:quick",
10-
"build": "rimraf out && tsc -p tsconfig.json"
8+
"test:ci": "pnpm --filter @roo-code/vscode package:development && pnpm test:run",
9+
"test:run": "rimraf out && tsc -p tsconfig.json && npx dotenvx run -f .env.local -- node ./out/runTest.js"
1110
},
1211
"devDependencies": {
1312
"@types/mocha": "^10.0.10",

e2e/src/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function main() {
66
try {
77
// The folder containing the Extension Manifest package.json
88
// Passed to `--extensionDevelopmentPath`
9-
const extensionDevelopmentPath = path.resolve(__dirname, "../../src")
9+
const extensionDevelopmentPath = path.resolve(__dirname, "../../dist")
1010

1111
// The path to the extension test script
1212
// Passed to --extensionTestsPath

0 commit comments

Comments
 (0)