@@ -15,7 +15,10 @@ export default defineConfig({
1515 } ,
1616 {
1717 find : / ^ \. \/ t a i l w i n d \. g e n e r a t e d \. c s s \? i n l i n e $ / ,
18- replacement : path . resolve ( __dirname , "vitest-mocks/tailwind.generated.css" ) ,
18+ replacement : path . resolve (
19+ __dirname ,
20+ "vitest-mocks/tailwind.generated.css"
21+ ) ,
1922 } ,
2023 // Alias Node.js built-ins for jsdom environment
2124 { find : "crypto" , replacement : "node:crypto" } ,
@@ -28,20 +31,30 @@ export default defineConfig({
2831 // Platform packages that need to be resolved from source in CI
2932 {
3033 find : "@calcom/platform-constants" ,
31- replacement : path . resolve ( __dirname , "packages/platform/constants/index.ts" ) ,
34+ replacement : path . resolve (
35+ __dirname ,
36+ "packages/platform/constants/index.ts"
37+ ) ,
3238 } ,
3339 {
3440 find : "@calcom/embed-react" ,
35- replacement : path . resolve ( __dirname , "packages/embeds/embed-react/src/index.ts" ) ,
41+ replacement : path . resolve (
42+ __dirname ,
43+ "packages/embeds/embed-react/src/index.ts"
44+ ) ,
3645 } ,
3746 {
3847 find : "@calcom/embed-snippet" ,
39- replacement : path . resolve ( __dirname , "packages/embeds/embed-snippet/src/index.ts" ) ,
48+ replacement : path . resolve (
49+ __dirname ,
50+ "packages/embeds/embed-snippet/src/index.ts"
51+ ) ,
4052 } ,
4153 ] ,
4254 } ,
4355 test : {
4456 globals : true ,
57+ silent : true ,
4558 environment : "jsdom" ,
4659 setupFiles : [ "./setupVitest.ts" ] ,
4760 server : {
@@ -72,6 +85,8 @@ function setEnvVariablesThatAreUsedBeforeSetup() {
7285 process . env . DAILY_API_KEY = "MOCK_DAILY_API_KEY" ;
7386 // With same env variable, we can test both non org and org booking scenarios
7487 process . env . NEXT_PUBLIC_WEBAPP_URL = "http://app.cal.local:3000" ;
75- process . env . CALCOM_SERVICE_ACCOUNT_ENCRYPTION_KEY = "UNIT_TEST_ENCRYPTION_KEY" ;
76- process . env . STRIPE_PRIVATE_KEY = process . env . STRIPE_PRIVATE_KEY || "sk_test_dummy_unit_test_key" ;
88+ process . env . CALCOM_SERVICE_ACCOUNT_ENCRYPTION_KEY =
89+ "UNIT_TEST_ENCRYPTION_KEY" ;
90+ process . env . STRIPE_PRIVATE_KEY =
91+ process . env . STRIPE_PRIVATE_KEY || "sk_test_dummy_unit_test_key" ;
7792}
0 commit comments