Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Fix e2e test suite compatibility with heartwood 1.7.1
Rūdolfs Ošiņš committed 1 month ago
commit 293f6adb527f9cb48a808408566d48d0cf43b7ed
parent 81388f2
4 files changed +7 -7
modified tests/support/cobs/issue.ts
@@ -15,7 +15,7 @@ export async function create(
    title,
    "--description",
    description,
-
    ...labels.map(label => ["--label", label]).flat(),
+
    ...(labels.length > 0 ? ["--labels", labels.join(",")] : []),
  ];
  const { stdout } = await peer.rad(issueOptions, options);
  const match = stdout.match(/Issue {3}([a-zA-Z0-9]*)/);
modified tests/support/fixtures.ts
@@ -387,7 +387,7 @@ export async function createCobsFixture(
    createOptions(repoFolder, 1),
  );
  await eve.rad(
-
    ["patch", "review", patchThree, "-m", "This looks better"],
+
    ["patch", "review", patchThree, "-m", "This looks better", "--accept"],
    createOptions(repoFolder, 2),
  );
  await Fs.appendFile(
@@ -435,6 +435,7 @@ export async function createCobsFixture(
      patchFour,
      "-m",
      "No review due to patch being archived.",
+
      "--accept",
    ],
    createOptions(repoFolder, 1),
  );
modified tests/support/heartwood-release
@@ -1 +1 @@
-
1.1.0

\ No newline at end of file
+
1.7.1
modified tests/support/support.ts
@@ -26,10 +26,9 @@ export const tmpDir = Path.resolve(supportDir, "..", "./tmp");
export const fixturesDir = Path.resolve(supportDir, "..", "./fixtures");
const workspacePaths = [Path.join(tmpDir, "peers"), Path.join(tmpDir, "repos")];

-
export const heartwoodRelease = await Fs.readFile(
-
  `${supportDir}/heartwood-release`,
-
  "utf8",
-
);
+
export const heartwoodRelease = (
+
  await Fs.readFile(`${supportDir}/heartwood-release`, "utf8")
+
).trim();

// Assert that binaries are installed and are the correct version.
export async function assertBinariesInstalled(