Skip to content

Commit

Permalink
Manually load the tree (items).
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 14, 2023
1 parent d8962ee commit 6db3139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ test('lists tests', async () => {
// Find the "Testing" activity bar icon and click it:
await vscode.commands.executeCommand('workbench.view.extension.test');

// Find the "Run All Tests" button and click it:
await vscode.commands.executeCommand('testing.runAll');

const extension = vscode.extensions.getExtension('socketry.sus-vscode');
const projects = extension?.exports;
const identifiers = Object.keys(projects);

assert(identifiers.length > 0);

identifiers.forEach((key) => {
identifiers.forEach(async (key) => {
const project = projects[key];
const workspace = project.workspaceFolder;

assert(project);
assert(project.controller);

await project.controller.loadTree();

assert(project.controller.items.size > 0);
});
});

0 comments on commit 6db3139

Please sign in to comment.