2023-05-24 23:35:44 +00:00
|
|
|
import { defineWorkspace } from "vitest/config";
|
|
|
|
|
|
|
|
// defineWorkspace provides a nice type hinting DX
|
|
|
|
export default defineWorkspace([
|
|
|
|
{
|
|
|
|
test: {
|
|
|
|
include: ["packages/**/*.{test,spec}.{ts,js}", "apps/**/*.{test,spec}.{ts,js}"],
|
2023-05-25 18:53:47 +00:00
|
|
|
// TODO: Ignore the api until tests are fixed
|
|
|
|
exclude: ["apps/api/**/*", "**/node_modules/**/*"],
|
2023-05-24 23:35:44 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: {
|
|
|
|
name: "@calcom/closecom",
|
|
|
|
include: ["packages/app-store/closecom/**/*.{test,spec}.{ts,js}"],
|
|
|
|
environment: "jsdom",
|
|
|
|
setupFiles: ["packages/app-store/closecom/test/globals.ts"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]);
|