Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Dec 8, 2024
1 parent 9727f25 commit 4f8c8e3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ export class MagikTestProvider implements vscode.Disposable {
});
}

private runTests(testItems: TestItemCollection, outputPath: fs.PathLike) {
private runTests(testItems: vscode.TestItemCollection, outputPath: fs.PathLike) {
// Gather required products.
const products = this.getSelfAndAncestors(testItems, 'product');
const productsStr = products
.map(testItem => ":|" + testItem.id.substring('product:'.length) + "|")
.join(",");

// Get modules to be loaded.
const modules = [
const modules: vscode.TestItem[] = [
...this.getSelfAndAncestors(testItems, 'module'),
...this.getSelfAndDescendants(testItems, 'module')
];
Expand Down Expand Up @@ -281,7 +281,7 @@ _protect
# Add all test_cases.`;

testItems.forEach(testItem => {
testItems.forEach((testItem: vscode.TestItem) => {
script += this.generateTestCase(testItem, "top_suite");
});

Expand Down

0 comments on commit 4f8c8e3

Please sign in to comment.