Migrate to oxfmt (#618)

* Migrate to oxfmt

* Enable import sorting

* trailingComma always
This commit is contained in:
Bjorn Lu
2026-05-15 11:48:55 +00:00
committed by GitHub
parent 03ba888eb8
commit 6c80731937
18 changed files with 324 additions and 110 deletions
+13 -13
View File
@@ -1,8 +1,8 @@
import fs from "node:fs/promises";
import path from "node:path";
import type { Changeset } from "@changesets/types";
import writeChangeset from "@changesets/write";
import fixturez from "fixturez";
import fs from "node:fs/promises";
import path from "node:path";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { Git } from "./git.ts";
import { setupOctokit } from "./octokit.ts";
@@ -41,7 +41,7 @@ let f = fixturez(import.meta.dirname);
const linkNodeModules = async (cwd: string) => {
await fs.symlink(
path.join(import.meta.dirname, "..", "node_modules"),
path.join(cwd, "node_modules")
path.join(cwd, "node_modules"),
);
};
const writeChangesets = (changesets: Changeset[], cwd: string) => {
@@ -79,7 +79,7 @@ describe("version", () => {
summary: "Awesome feature",
},
],
cwd
cwd,
);
await runVersion({
@@ -114,7 +114,7 @@ describe("version", () => {
summary: "Awesome feature",
},
],
cwd
cwd,
);
await runVersion({
@@ -150,7 +150,7 @@ describe("version", () => {
summary: "Awesome feature",
},
],
cwd
cwd,
);
await runVersion({
@@ -185,7 +185,7 @@ describe("version", () => {
summary: "Awesome feature",
},
],
cwd
cwd,
);
await runVersion({
@@ -240,7 +240,7 @@ fluminis divesque vulnere aquis parce lapsis rabie si visa fulmineis.
`,
},
],
cwd
cwd,
);
await runVersion({
@@ -253,7 +253,7 @@ fluminis divesque vulnere aquis parce lapsis rabie si visa fulmineis.
expect(mockedGithubMethods.pulls.create.mock.calls[0]).toMatchSnapshot();
expect(mockedGithubMethods.pulls.create.mock.calls[0][0].body).toMatch(
/The changelog information of each package has been omitted from this message/
/The changelog information of each package has been omitted from this message/,
);
});
@@ -299,7 +299,7 @@ fluminis divesque vulnere aquis parce lapsis rabie si visa fulmineis.
`,
},
],
cwd
cwd,
);
await runVersion({
@@ -312,7 +312,7 @@ fluminis divesque vulnere aquis parce lapsis rabie si visa fulmineis.
expect(mockedGithubMethods.pulls.create.mock.calls[0]).toMatchSnapshot();
expect(mockedGithubMethods.pulls.create.mock.calls[0][0].body).toMatch(
/All release information have been omitted from this message, as the content exceeds the size limit/
/All release information have been omitted from this message, as the content exceeds the size limit/,
);
});
@@ -336,7 +336,7 @@ fluminis divesque vulnere aquis parce lapsis rabie si visa fulmineis.
summary: "Awesome feature",
},
],
cwd
cwd,
);
await runVersion({
@@ -370,7 +370,7 @@ fluminis divesque vulnere aquis parce lapsis rabie si visa fulmineis.
summary: "Awesome feature",
},
],
cwd
cwd,
);
await runVersion({