Skip to content

Commit fcd445f

Browse files
committed
format/remove unused imports
1 parent c974893 commit fcd445f

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

scripts/src/__tests__/setupPipeline.test.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,17 @@ test.each(inputs)("setupPipeline tsgo input=%s", async input => {
8989
error = e;
9090
}
9191

92-
await expect(result?.matrix).toMatchFileSnapshot(getSnapshotPath(input+"_tsgo", "matrix"));
93-
await expect(result?.outputVariables).toMatchFileSnapshot(getSnapshotPath(input+"_tsgo", "outputVariables"));
94-
await expect(result?.compute).toMatchFileSnapshot(getSnapshotPath(input+"_tsgo", "compute"));
95-
await expect(result?.parameters).toMatchFileSnapshot(getSnapshotPath(input+"_tsgo", "parameters"));
96-
await expect(error).toMatchFileSnapshot(getSnapshotPath(input+"_tsgo", "error"));
92+
await expect(result?.matrix).toMatchFileSnapshot(getSnapshotPath(input + "_tsgo", "matrix"));
93+
await expect(result?.outputVariables).toMatchFileSnapshot(getSnapshotPath(input + "_tsgo", "outputVariables"));
94+
await expect(result?.compute).toMatchFileSnapshot(getSnapshotPath(input + "_tsgo", "compute"));
95+
await expect(result?.parameters).toMatchFileSnapshot(getSnapshotPath(input + "_tsgo", "parameters"));
96+
await expect(error).toMatchFileSnapshot(getSnapshotPath(input + "_tsgo", "error"));
9797
});
9898

99-
10099
function getAllExpectedSnapshots() {
101100
return new Set([
102101
...allSnapshotKinds.flatMap(kind => inputs.map(input => getSnapshotPath(input, kind))),
103-
...allSnapshotKinds.flatMap(kind => inputs.map(input => getSnapshotPath(input+"_tsgo", kind))),
102+
...allSnapshotKinds.flatMap(kind => inputs.map(input => getSnapshotPath(input + "_tsgo", kind))),
104103
]);
105104
}
106105

@@ -127,6 +126,8 @@ test("abandoned snapshots", () => {
127126
}
128127

129128
if (abandonedSnapshots.length) {
130-
throw new Error("Abandoned snapshots found; please update snapshots to remove them:\n" + abandonedSnapshots.join("\n"));
129+
throw new Error(
130+
"Abandoned snapshots found; please update snapshots to remove them:\n" + abandonedSnapshots.join("\n"),
131+
);
131132
}
132133
});

ts-perf/packages/commands/src/benchmark/measurelsp.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { execFileSync } from "node:child_process";
21
import * as cp from "node:child_process";
32
import fs from "node:fs";
43
import path from "node:path";
@@ -211,10 +210,6 @@ async function runPerf(options: CLIOpts) {
211210
connection.dispose();
212211
}
213212

214-
function sleep(ms: number): Promise<void> {
215-
return new Promise(resolve => setTimeout(resolve, ms));
216-
}
217-
218213
async function runCommand(command: TSServerCommand, seq: number): Promise<void> {
219214
let time: number;
220215
switch (command.commandName) {

0 commit comments

Comments
 (0)