Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright V2 E2E Framework #4706

Merged
merged 12 commits into from
Jul 3, 2024
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ out/
.env
.idea/
.run/
.test/
**/*.iml
**/*.vsix
index.scip
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
},
"editor.insertSpaces": true,
"cSpell.words": ["Supercompletion", "Supercompletions"],
"[json]": {
"editor.defaultFormatter": "biomejs.biome",
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
Expand Down
4 changes: 2 additions & 2 deletions agent/src/cli/cody-bench/strategy-fix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PromptString, ps } from '@sourcegraph/cody-shared'
import { glob } from 'glob'
import * as vscode from 'vscode'
import { ProtocolTextDocumentWithUri } from '../../../../vscode/src/jsonrpc/TextDocumentWithUri'
import { fileExists } from '../../../../vscode/src/local-context/download-symf'
import { pathExists } from '../../../../vscode/src/local-context/utils'
import { redactAuthorizationHeader } from '../../../../vscode/src/testutils/CodyPersister'
import { AgentTextDocument } from '../../AgentTextDocument'
import { TestClient } from '../../TestClient'
Expand Down Expand Up @@ -31,7 +31,7 @@ export async function evaluateFixStrategy(
token: options.srcAccessToken,
},
})
if (!(await fileExists(path.join(options.workspace, 'node_modules')))) {
if (!(await pathExists(path.join(options.workspace, 'node_modules')))) {
// Run pnpm install only when `node_modules` doesn't exist.
await runVoidCommand(options.installCommand, options.workspace)
}
Expand Down
4 changes: 4 additions & 0 deletions lib/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dedent": "^0.7.0",
"diff": "^5.2.0",
"fast-xml-parser": "^4.3.2",
"graceful-fs": "^4.2.11",
"isomorphic-fetch": "^3.0.0",
"js-tiktoken": "^1.0.10",
"lexical": "^0.16.0",
Expand All @@ -36,6 +37,7 @@
"ollama": "^0.5.1",
"re2js": "^0.4.1",
"semver": "^7.5.4",
"signal-exit": "^4.1.0",
"vscode-uri": "^3.0.7",
"win-ca": "^3.5.1"
},
Expand All @@ -44,10 +46,12 @@
"@types/crypto-js": "^4.2.2",
"@types/dedent": "^0.7.0",
"@types/diff": "^5.0.9",
"@types/graceful-fs": "^4.1.9",
"@types/isomorphic-fetch": "^0.0.39",
"@types/lodash": "^4.14.195",
"@types/node-fetch": "^2.6.4",
"@types/semver": "^7.5.0",
"@types/signal-exit": "^3.0.4",
"@types/vscode": "^1.80.0"
}
}
2 changes: 2 additions & 0 deletions lib/shared/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ export * from './sourcegraph-api/utils'
export * from './token'
export * from './token/constants'
export * from './configuration'
import * as lockfile from './lockfile'
export { lockfile }
export {
setOpenCtxClient,
openCtx,
Expand Down
Loading
Loading