* feat: add membership creation date to Organization Member List table (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * feat: add migration for membership creation date (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * feat: make createdAt and updatedAt nullable (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * feat: add updatedAt column to Organization Member List table (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * fix: use type assertion to access createdAt and updatedAt fields (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * fix: display N/A for null date values (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * fix: use proper type assertions for createdAt and updatedAt fields (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * fix: add createdAt and updatedAt to UserTableUser mock in test (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * feat: add PostgreSQL trigger for membership timestamps (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * fix: use empty string instead of N/A and add translations for column headers (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * add i18n text * clean up type issue * feat: add translation keys for column headers (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * disable sort * remove duplicated i18n texts * feat: add filters for lastActiveAt, createdAt, and updatedAt (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * support date range filter * fix date range for end date * hide columns by default * revert wrong change * add missing selects * fix e2e test * fix: remove PostgreSQL trigger and let application handle timestamps (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * feat: add application-level timestamp handling for Membership model (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * add more timestamp handling * refactor: use Prisma's built-in decorators for Membership timestamps (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * refactor: remove application-level timestamp handling in favor of Prisma decorators (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * refactor: remove more application-level timestamp handling in favor of Prisma decorators (CAL-5406) Co-Authored-By: keith@cal.com <keith@cal.com> * fix e2e test --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: keith@cal.com <keith@cal.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Co-authored-by: Eunjae Lee <hey@eunjae.dev>
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