// @vitest-environment node

import { describe, expect, it } from "vitest";

import configFactory from "../vite.config";

describe("clients vite config", () => {
  it("uses hidden sourcemaps for production builds", () => {
    const config = configFactory({
      mode: "production",
      command: "build",
      isSsrBuild: false,
      isPreview: false,
    });

    expect(config.build?.sourcemap).toBe("hidden");
  });
});
