Skip to content

Commit b4b5bf0

Browse files
committed
Fix lint
1 parent 3ef953a commit b4b5bf0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/testRunner/parallel/host.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,26 +193,26 @@ namespace Harness.Parallel.Host {
193193
}
194194

195195
function skipCostlyTests(tasks: Task[]) {
196-
if (statSync('.test-cost.json')) {
197-
const costs = JSON.parse(readFileSync('.test-cost.json', 'utf8')) as {
196+
if (statSync(".test-cost.json")) {
197+
const costs = JSON.parse(readFileSync(".test-cost.json", "utf8")) as {
198198
totalTime: number,
199199
totalEdits: number,
200-
data: Array<{ name: string, time: number, edits: number, costs: number }>
201-
}
200+
data: { name: string, time: number, edits: number, costs: number }[]
201+
};
202202
let skippedEdits = 0;
203-
let skippedTests = new Set<string>();
204203
let skippedTime = 0;
204+
const skippedTests = new Set<string>();
205205
let i = 0;
206206
for (; i < costs.data.length && (skippedEdits / costs.totalEdits) < (skipPercent / 100); i++) {
207207
skippedEdits += costs.data[i].edits;
208208
skippedTime += costs.data[i].time;
209209
skippedTests.add(costs.data[i].name);
210210
}
211-
console.log(`Skipped ${i} expensive tests; estimated time savings of ${(skippedTime / costs.totalTime * 100).toFixed(2)}% with ${skipPercent.toFixed(2)}% chance of missing a test.`)
211+
console.log(`Skipped ${i} expensive tests; estimated time savings of ${(skippedTime / costs.totalTime * 100).toFixed(2)}% with ${skipPercent.toFixed(2)}% chance of missing a test.`);
212212
return tasks.filter(t => !skippedTests.has(t.file));
213213
}
214214
else {
215-
console.log('No cost analysis discovered.');
215+
console.log("No cost analysis discovered.");
216216
return tasks;
217217
}
218218
}

0 commit comments

Comments
 (0)