import assert from "node:assert/strict";
import { existsSync } from "node:fs";
import { join } from "node:path";
import { test } from "vitest";

const repoRoot = join(import.meta.dirname, "../../../../..");

test("sfMcpServer_when_removed_stays_absent", () => {
	const forbiddenPaths = [
		"packages/mcp-server",
		"src/mcp-server.ts",
		"src/resources/extensions/sf/mcp-server.js",
	];

	for (const relativePath of forbiddenPaths) {
		assert.equal(
			existsSync(join(repoRoot, relativePath)),
			false,
			`${relativePath} must not be recreated; SF is an MCP client only`,
		);
	}
});
