From 344baa0e5d30ecb2ab149e7f6fac32f6d8bcf37b Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Mon, 30 Jun 2025 15:27:26 -0700 Subject: [PATCH] create a new npm script to run tests in non-mac environments --- extensions/vscode/e2e/README.md | 4 ++-- extensions/vscode/package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/e2e/README.md b/extensions/vscode/e2e/README.md index 60dd70e9f..0a16ff952 100644 --- a/extensions/vscode/e2e/README.md +++ b/extensions/vscode/e2e/README.md @@ -34,8 +34,8 @@ All e2e tests are separated (by folder) into ### How is it connecting to the LLM? -- This depends on the model provider written inside the `config.json`. If the model provider is `mock`, it will use `MockLLM`, and if it uses `test`, it will use `TestLLM`. +- This depends on the model provider written inside the `test-continue/config.json`. If the model provider is `mock`, it will use `MockLLM`, and if it uses `test`, it will use `TestLLM`. ### Quirks -- For non-macOS systems, `codesign` is not available. You should get rid of `npm run e2e:sign-vscode` from the right hand side of `e2e:all` inside `scripts` in `extensions/vscode/package.json`. \ No newline at end of file +- For non-macOS systems, `codesign` is not available. You should run `npm run e2e:all-non-mac` instead of `npm run e2e:all`. \ No newline at end of file diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index a698cce23..cab59fe14 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -669,6 +669,7 @@ "e2e:test": "extest run-tests ${TEST_FILE:-'./e2e/_output/tests/*.test.js'} --code_settings settings.json --extensions_dir ./e2e/.test-extensions --storage ./e2e/storage", "e2e:clean": "rm -rf ./e2e/_output ./e2e/storage", "e2e:all": "npm run e2e:build && npm run e2e:compile && npm run e2e:create-storage && npm run e2e:get-chromedriver && npm run e2e:get-vscode && npm run e2e:sign-vscode && npm run e2e:copy-vsix && npm run e2e:install-vsix && npm run e2e:install-extensions && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test && npm run e2e:clean", + "e2e:all-non-mac": "npm run e2e:build && npm run e2e:compile && npm run e2e:create-storage && npm run e2e:get-chromedriver && npm run e2e:get-vscode && npm run e2e:copy-vsix && npm run e2e:install-vsix && npm run e2e:install-extensions && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test && npm run e2e:clean", "e2e:recompile-extension": "npm run package && npm run e2e:compile && npm run e2e:copy-vsix && npm run e2e:install-vsix && npm run e2e:install-extensions && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test && npm run e2e:clean", "e2e:rebuild-gui": "rm -rf gui && cp -r ../../gui/dist gui && npm run package && npm run e2e:copy-vsix && npm run e2e:install-vsix && npm run e2e:install-extensions && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test && npm run e2e:clean", "e2e:quick": "npm run e2e:compile && CONTINUE_GLOBAL_DIR=e2e/test-continue npm run e2e:test && npm run e2e:clean",