* POC working with no TS error * cleanup * Fix query booking * Simplify things * Support rerouting to different event * self-review fixes * Some improvements * add more tests * Remove members relation query * Udits feedback * Dont show CTAs when non-eventTypeRedirectUrl action route is chosen --------- Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
22 lines
663 B
TypeScript
22 lines
663 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
process.env.INTEGRATION_TEST_MODE = "true";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
coverage: {
|
|
provider: "v8",
|
|
},
|
|
passWithNoTests: true,
|
|
testTimeout: 500000,
|
|
},
|
|
});
|
|
|
|
setEnvVariablesThatAreUsedBeforeSetup();
|
|
|
|
function setEnvVariablesThatAreUsedBeforeSetup() {
|
|
// We can't set it during tests because it is used as soon as _metadata.ts is imported which happens before tests start running
|
|
process.env.DAILY_API_KEY = "MOCK_DAILY_API_KEY";
|
|
// With same env variable, we can test both non org and org booking scenarios
|
|
process.env.NEXT_PUBLIC_WEBAPP_URL = "http://app.cal.local:3000";
|
|
}
|