From 39cd49bd3a63c124761315f2f7ff3591cfd6fe2a Mon Sep 17 00:00:00 2001 From: Sysix Date: Fri, 22 Nov 2024 17:00:40 +0100 Subject: [PATCH] test(editor): check if workspace configuration is updated --- editors/vscode/.vscode-test.mjs | 2 +- editors/vscode/client/config.spec.ts | 2 +- editors/vscode/test_workspace/.gitignore | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 editors/vscode/test_workspace/.gitignore diff --git a/editors/vscode/.vscode-test.mjs b/editors/vscode/.vscode-test.mjs index 513d81326d794..44f1d6165d89e 100644 --- a/editors/vscode/.vscode-test.mjs +++ b/editors/vscode/.vscode-test.mjs @@ -2,5 +2,5 @@ import { defineConfig } from '@vscode/test-cli'; export default defineConfig({ files: 'out/**/*.spec.js', - workspaceFolder: './test/workspace' + workspaceFolder: './test_workspace', }); diff --git a/editors/vscode/client/config.spec.ts b/editors/vscode/client/config.spec.ts index aad4516349a45..266bf449119fe 100644 --- a/editors/vscode/client/config.spec.ts +++ b/editors/vscode/client/config.spec.ts @@ -8,7 +8,7 @@ suite('Config', () => { const keys = ['lint.run', 'enable', 'trace.server', 'configPath', 'path.server']; await Promise.all(keys.map(key => wsConfig.update(key, undefined))); - }) + }); test('default values on initialization', () => { const config = new Config(); diff --git a/editors/vscode/test_workspace/.gitignore b/editors/vscode/test_workspace/.gitignore new file mode 100644 index 0000000000000..d29675e5315ab --- /dev/null +++ b/editors/vscode/test_workspace/.gitignore @@ -0,0 +1,2 @@ +** +!.gitignore \ No newline at end of file