Skip to content

Commit 1468722

Browse files
cleanup
1 parent 4047538 commit 1468722

5 files changed

Lines changed: 12 additions & 22 deletions

File tree

packages/test-harness/src/scripts/runNeovimTestsCI.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
import { launchNeovimAndRunTests } from "../launchNeovimAndRunTests";
66

7-
void (async () => {
8-
await launchNeovimAndRunTests();
9-
})();
7+
void launchNeovimAndRunTests();

packages/test-harness/src/scripts/runTalonJsTests.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Runs all Talon everywhere/JS tests.
33
*/
44

5-
void (async () => {
6-
const { TestType, runAllTests } = await import("../runAllTests");
5+
import { TestType, runAllTests } from "../runAllTests";
76

8-
await runAllTests(TestType.talonJs);
9-
})();
7+
void runAllTests(TestType.talonJs);

packages/test-harness/src/scripts/runTalonTests.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Runs all Talon tests.
33
*/
44

5-
void (async () => {
6-
const { TestType, runAllTests } = await import("../runAllTests");
5+
import { TestType, runAllTests } from "../runAllTests";
76

8-
await runAllTests(TestType.talon);
9-
})();
7+
void runAllTests(TestType.talon);

packages/test-harness/src/scripts/runUnitTests.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* Runs all tests that don't have to be run within a particular environment.
33
*/
44

5-
void (async () => {
6-
const { TestType, runAllTests } = await import("../runAllTests");
5+
import { TestType, runAllTests } from "../runAllTests";
76

8-
await runAllTests(TestType.unit);
9-
})();
7+
void runAllTests(TestType.unit);

packages/test-harness/src/scripts/runVscodeTestsCI.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import { getCursorlessRepoRoot } from "@cursorless/node-common";
66
import * as path from "node:path";
77
import { launchVscodeAndRunTests } from "../launchVscodeAndRunTests";
88

9-
void (async () => {
10-
const extensionTestsPath = path.resolve(
11-
getCursorlessRepoRoot(),
12-
"packages/test-harness/out/extensionTestsVscode.cjs",
13-
);
9+
const extensionTestsPath = path.resolve(
10+
getCursorlessRepoRoot(),
11+
"packages/test-harness/out/extensionTestsVscode.cjs",
12+
);
1413

15-
await launchVscodeAndRunTests(extensionTestsPath);
16-
})();
14+
void launchVscodeAndRunTests(extensionTestsPath);

0 commit comments

Comments
 (0)