Skip to content

Commit a53fa0f

Browse files
committed
minimal things
Signed-off-by: Logan McAnsh <[email protected]>
1 parent 786b4ec commit a53fa0f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

__scripts/test.mjs

+1-8
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ if (process.env.CI) {
4343
}
4444

4545
const files = stdout.split("\n");
46-
4746
const dirs = files.map((f) => f.split("/").at(0));
48-
4947
examples = [...new Set(dirs)].filter((d) => !TO_IGNORE.has(d));
5048
} else {
5149
const entries = await fse.readdir(process.cwd(), { withFileTypes: true });
@@ -60,10 +58,6 @@ const list = new Intl.ListFormat("en", { style: "long", type: "conjunction" });
6058

6159
console.log(`Testing changed examples: ${list.format(examples)}`);
6260

63-
if (examples.length === 0) {
64-
return;
65-
}
66-
6761
for (const example of examples) {
6862
const pkgJson = await PackageJson.load(example);
6963

@@ -143,7 +137,6 @@ for (const example of examples) {
143137
}
144138

145139
installQueue.start();
146-
installQueue.on("error", (error) => console.error("🚨", error));
147140

148141
installQueue.on("empty", () => {
149142
console.log(`installQueue is complete, moving on to buildQueue`);
@@ -155,6 +148,6 @@ buildQueue.on("empty", () => {
155148
return typecheckQueue.start();
156149
});
157150

151+
installQueue.on("error", (error) => console.error("🚨", error));
158152
buildQueue.on("error", (error) => console.error("🚨", error));
159-
160153
typecheckQueue.on("error", (error) => console.error("🚨", error));

0 commit comments

Comments
 (0)