Skip to content

Commit 7da8f28

Browse files
committed
fix(release): type frozen shard resolver tests
1 parent 6fbf0e7 commit 7da8f28

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎scripts/test-live-shard.mts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ export function resolveLiveShardBuildEntrypoint(exists = fs.existsSync): string[
724724
throw new Error("Live test shard cannot find scripts/build-all.{mts,mjs}");
725725
}
726726

727-
export function resolveLiveShardBuildProfile(profile: string, usage: string): string {
728-
return usage.split("\n").includes(` ${profile}`) ? profile : "full";
727+
export function resolveLiveShardBuildProfile(profile: string, helpOutput: string): string {
728+
return helpOutput.split("\n").includes(` ${profile}`) ? profile : "full";
729729
}
730730

731731
if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {

‎test/scripts/test-live-shard.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ describe("scripts/test-live-shard", () => {
257257
});
258258

259259
it("runs the frozen candidate's available build entrypoint and advertised profile", () => {
260-
expect(resolveLiveShardBuildEntrypoint((file) => file.endsWith(".mts"))).toEqual([
260+
expect(resolveLiveShardBuildEntrypoint((file) => file === "scripts/build-all.mts")).toEqual([
261261
"--import",
262262
"tsx",
263263
"scripts/build-all.mts",
264264
]);
265-
expect(resolveLiveShardBuildEntrypoint((file) => file.endsWith(".mjs"))).toEqual([
265+
expect(resolveLiveShardBuildEntrypoint((file) => file === "scripts/build-all.mjs")).toEqual([
266266
"scripts/build-all.mjs",
267267
]);
268268
expect(() => resolveLiveShardBuildEntrypoint(() => false)).toThrow(

0 commit comments

Comments
 (0)