test: booking and duration limits e2e (#10968)
* test: booking and frequency limits e2e * test: refactor limit e2e and check multiple * test: move limits e2e to separate file * fix: blocked day assertions * chore: rename to booking-limits * fix: use todo test util * chore: un-DRY tests * feat: create user with limits helper * chore: move user limit helper to utils * fix: multiple limits test * feat: fail faster * chore: event url helper * fix: prismock count date comparisons * chore: improve booking limit types in test utils * test: add typed weekStart to getOrganizer helper * test: add custom fromDate to getDate helper * fix: correctly handle negative date increments * test: add helper for partial weeks * test: booking limits edge cases * chore: remove booking limit e2e todos * chore: normalize getDate return type and skip test * Fix imports paths that are changes after main merge * Fix failing types * Skip failing test --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Hariom <[email protected]>
This commit is contained in:
6 files changed
+965
-18
No files matched your search
@@ -13,7 +13,7 @@
|
||||
"@calcom/embed-snippet": ["../embed-snippet/src"]
|
||||
}
|
||||
},
|
||||
"include": ["**/*.ts", "**/*.tsx", "env.d.ts"],
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "env.d.ts"],
|
||||
// Exclude "test" because that has `api.test.ts` which imports @calcom/embed-react which needs it to be built using this tsconfig.json first. Excluding it here prevents type-check from validating test folder
|
||||
"exclude": ["node_modules", "test"]
|
||||
}
|
||||
Reference in new issue
Block a user