hunk.code_window: import { WEBAPP_URL } from "@calcom/lib/constants";
   import { HttpError } from "@calcom/lib/http-error";
   import logger from "@calcom/lib/logger";
   import type {
     Calendar,
     CalendarEvent,
     IntegrationCalendar,
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit: import { prisma } from "@calcom/prisma";
  
hunk.file_path: packages/app-store/salesforce/lib/CalendarService.ts
hunk.type: add
file: import { defineWorkspace } from "vitest/config";
  
  const packagedEmbedTestsOnly = process.argv.includes("--packaged-embed-tests-only");
  // defineWorkspace provides a nice type hinting DX
  const workspaces = packagedEmbedTestsOnly
    ? [
        {
          test: {
            include: ["packages/embeds/**/*.{test,spec}.{ts,js}"],
            environment: "jsdom",
          },
        },
      ]
    : [
        {
          test: {
            include: ["packages/**/*.{test,spec}.{ts,js}", "apps/**/*.{test,spec}.{ts,js}"],
            // TODO: Ignore the api until tests are fixed
            exclude: ["**/node_modules/**/*", "packages/embeds/**/*"],
            setupFiles: ["setupVitest.ts"],
          },
        },
        {
          test: {
            name: "@calcom/closecom",
            include: ["packages/app-store/closecom/**/*.{test,spec}.{ts,js}"],
            environment: "jsdom",
            setupFiles: ["packages/app-store/closecom/test/globals.ts"],
          },
        },
        {
          test: {
            globals: true,
            name: "ui/components",
            include: ["packages/ui/components/**/*.{test,spec}.{ts,js,tsx}"],
            environment: "jsdom",
            setupFiles: ["packages/ui/components/test-setup.ts"],
          },
        },
        {
          test: {
            globals: true,
            name: "EventTypeAppCardInterface components",
            include: ["packages/app-store/_components/**/*.{test,spec}.{ts,js,tsx}"],
            environment: "jsdom",
            setupFiles: ["packages/app-store/test-setup.ts"],
          },
        },
      ];
  
  export default defineWorkspace(workspaces);
  