Skip to content

Commit e0a08fe

Browse files
committed
test: update testing
1 parent d366909 commit e0a08fe

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debugger;

editors/vscode/tests/e2e_server_linter.spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,18 @@ suite('E2E Server Linter', () => {
282282
const secondDiagnostics = await getDiagnostics('index.ts');
283283
strictEqual(secondDiagnostics.length, 1);
284284
});
285+
286+
testSingleFolderMode('changing oxc.enable will update the client status', async () => {
287+
await loadFixture('changing_enable');
288+
289+
const firstDiagnostics = await getDiagnostics('debugger.js');
290+
strictEqual(firstDiagnostics.length, 1);
291+
292+
await workspace.getConfiguration('oxc').update('enable', false);
293+
await workspace.saveAll();
294+
await waitForDiagnosticChange();
295+
296+
const secondDiagnostics = await getDiagnostics('debugger.js');
297+
strictEqual(secondDiagnostics.length, 0);
298+
})
285299
});

0 commit comments

Comments
 (0)