Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

style: apply biome formatting to test tooling files

Tinee83b6819a55
diff --git a/apps/web/src/components/ui/separator.test.tsx b/apps/web/src/components/ui/separator.test.tsx
index 1199dcf6a..b5da550db 100644
--- a/apps/web/src/components/ui/separator.test.tsx
+++ b/apps/web/src/components/ui/separator.test.tsx
@@ -3,8 +3,8 @@ import { describe, expect, it } from "vitest";
import { Separator } from "./separator";
describe("Separator", () => {
- it("renders a horizontal separator", () => {
- render(<Separator />);
- expect(screen.getByRole("separator")).toBeInTheDocument();
- });
+ it("renders a horizontal separator", () => {
+ render(<Separator />);
+ expect(screen.getByRole("separator")).toBeInTheDocument();
+ });
});
diff --git a/apps/web/src/lib/cn.test.ts b/apps/web/src/lib/cn.test.ts
index f6d4f8796..7db12d6ff 100644
--- a/apps/web/src/lib/cn.test.ts
+++ b/apps/web/src/lib/cn.test.ts
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
import { cn } from "./cn";
describe("cn", () => {
- it("merges tailwind classes and resolves conflicts", () => {
- expect(cn("px-2 py-1", "px-4")).toBe("py-1 px-4");
- });
+ it("merges tailwind classes and resolves conflicts", () => {
+ expect(cn("px-2 py-1", "px-4")).toBe("py-1 px-4");
+ });
});
diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.ts
index 1436465b5..40a38b3bd 100644
--- a/apps/web/vitest.config.ts
+++ b/apps/web/vitest.config.ts
@@ -3,18 +3,18 @@ import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
export default defineConfig({
- plugins: [react()],
- test: {
- environment: "jsdom",
- setupFiles: ["./src/test/setup.ts"],
- include: ["src/**/*.test.{ts,tsx}"],
- coverage: {
- enabled: false,
- },
- },
- resolve: {
- alias: {
- "@": path.resolve(__dirname, "./src"),
- },
- },
+ plugins: [react()],
+ test: {
+ environment: "jsdom",
+ setupFiles: ["./src/test/setup.ts"],
+ include: ["src/**/*.test.{ts,tsx}"],
+ coverage: {
+ enabled: false,
+ },
+ },
+ resolve: {
+ alias: {
+ "@": path.resolve(__dirname, "./src"),
+ },
+ },
});
diff --git a/packages/email/src/templates/otp.test.ts b/packages/email/src/templates/otp.test.ts
index faba06544..880821782 100644
--- a/packages/email/src/templates/otp.test.ts
+++ b/packages/email/src/templates/otp.test.ts
@@ -4,9 +4,9 @@ import { describe, expect, it } from "vitest";
import OtpEmail from "./otp";
describe("OtpEmail", () => {
- it("renders OTP and verification copy in HTML", async () => {
- const html = await render(createElement(OtpEmail, { otp: "123456" }));
- expect(html).toContain("123456");
- expect(html).toContain("verification code");
- });
+ it("renders OTP and verification copy in HTML", async () => {
+ const html = await render(createElement(OtpEmail, { otp: "123456" }));
+ expect(html).toContain("123456");
+ expect(html).toContain("verification code");
+ });
});
diff --git a/packages/email/vitest.config.ts b/packages/email/vitest.config.ts
index cfbd4c3fc..c1433e6ef 100644
--- a/packages/email/vitest.config.ts
+++ b/packages/email/vitest.config.ts
@@ -1,8 +1,8 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
- test: {
- environment: "node",
- include: ["src/**/*.test.ts"],
- },
+ test: {
+ environment: "node",
+ include: ["src/**/*.test.ts"],
+ },
});
diff --git a/packages/libs/src/api-url.test.ts b/packages/libs/src/api-url.test.ts
index b98d1e320..6ee781870 100644
--- a/packages/libs/src/api-url.test.ts
+++ b/packages/libs/src/api-url.test.ts
@@ -2,16 +2,16 @@ import { describe, expect, it } from "vitest";
import { resolveApiBaseUrl } from "./api-url";
describe("resolveApiBaseUrl", () => {
- it("appends /api when the base has no api suffix", () => {
- expect(resolveApiBaseUrl(undefined)).toBe("http://localhost:1337/api");
- expect(resolveApiBaseUrl("http://localhost:1337")).toBe(
- "http://localhost:1337/api",
- );
- });
+ it("appends /api when the base has no api suffix", () => {
+ expect(resolveApiBaseUrl(undefined)).toBe("http://localhost:1337/api");
+ expect(resolveApiBaseUrl("http://localhost:1337")).toBe(
+ "http://localhost:1337/api",
+ );
+ });
- it("returns the URL unchanged when it already ends with /api", () => {
- expect(resolveApiBaseUrl("http://localhost:1337/api")).toBe(
- "http://localhost:1337/api",
- );
- });
+ it("returns the URL unchanged when it already ends with /api", () => {
+ expect(resolveApiBaseUrl("http://localhost:1337/api")).toBe(
+ "http://localhost:1337/api",
+ );
+ });
});
diff --git a/packages/libs/src/api-url.ts b/packages/libs/src/api-url.ts
index d872c2c97..5fff1f754 100644
--- a/packages/libs/src/api-url.ts
+++ b/packages/libs/src/api-url.ts
@@ -3,6 +3,6 @@
* If the value already ends with `/api`, it is returned as-is; otherwise `/api` is appended.
*/
export function resolveApiBaseUrl(viteApiUrl: string | undefined): string {
- const baseUrl = viteApiUrl || "http://localhost:1337";
- return baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
+ const baseUrl = viteApiUrl || "http://localhost:1337";
+ return baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
}
diff --git a/packages/libs/vitest.config.ts b/packages/libs/vitest.config.ts
index cfbd4c3fc..c1433e6ef 100644
--- a/packages/libs/vitest.config.ts
+++ b/packages/libs/vitest.config.ts
@@ -1,8 +1,8 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
- test: {
- environment: "node",
- include: ["src/**/*.test.ts"],
- },
+ test: {
+ environment: "node",
+ include: ["src/**/*.test.ts"],
+ },
});