fix: More Stability for FormBuilder by unit tests (#16129)

* Remove use of location from FormBuilder

* Add tests

* Improve error message in test

* Bust cache
This commit is contained in:
Hariom Balhara authored and GitHub committed 2024-08-27 08:14:19 -04:00
1 parent 7aae55f417
commit 6104add6bd
9 files changed
+463 -200

No files matched your search

+10
View File
@@ -107,6 +107,7 @@ const workspaces = packagedEmbedTestsOnly
globals: true,
name: "@calcom/features",
include: ["packages/features/**/*.{test,spec}.tsx"],
exclude: ["packages/features/form-builder/**/*"],
environment: "jsdom",
setupFiles: ["setupVitest.ts", "packages/ui/components/test-setup.ts"],
},
@@ -149,6 +150,15 @@ const workspaces = packagedEmbedTestsOnly
setupFiles: ["packages/ui/components/test-setup.ts"],
},
},
{
test: {
globals: true,
name: "@calcom/features/form-builder",
include: ["packages/features/form-builder/**/*.{test,spec}.[jt]s?(x)"],
environment: "jsdom",
setupFiles: ["packages/ui/components/test-setup.ts"],
},
},
{
test: {
globals: true,