cal.pub0.org/apps/web/test
Alex van Andel c8744768c4
Refactored buildSlots (#6389)
* Refactored buildSlots

* Added typing for computedAvailableSlots

* Adds very simple boundary logic to make sure slots start at the right times

* Logic was cutting off too early

* Woops, should be eventLength, not frequency

* Expect 12:15 slots as availability is till 12:30 for booking

* Deliberately skip test for testing purposes

* slotInterval overrides intervals, but not duration

* Fix calendar mocking

* Another 45m length

* Unskip :(

* Fix test

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
2023-01-11 17:33:34 +00:00
..
lib Refactored buildSlots (#6389) 2023-01-11 17:33:34 +00:00
.env.test.example
README.md
docker-compose.yml
jest-resolver.js Update all Yarn dependencies (2022-07-29) (#3599) 2022-08-17 11:38:21 -06:00
jest-setup.js Update all Yarn dependencies (2022-07-29) (#3599) 2022-08-17 11:38:21 -06:00

README.md

Unit and Integration Tests

Make sure you have copied .env.test.example to .env.test

You can run all jest tests as

yarn test

You can run tests matching specific description by following command yarn test -t getSchedule

Tip: Use --watchAll flag to run tests on every change