Implement preemptive tests that will test the described behaviors of the listing_categories collection including their unique constraint, category associations dependent on the existence of categories documents, and document existence dependent on the referenced listing document.
Task Description:
Create Unit Tests that will check for our desired behavior and are meant to fail, as these behaviors have not been implemented yet.
Implementation:
Will write Unit Tests and ensure they fail with our base as is, but pass when our desired behavior is simulated.
Subtasks:
Test for duplicate listing_categories documents by evaluating their listing_id and category_id.
Test for category_id field being set to null when the referenced categories document is deleted.
Test for listing_categories document is deleted when the referenced listing document is deleted.
Testing and Debugging:
Ensuring tests correctly evaluate the desired behaviors by checking they pass when the desired behaviors are simulated.
Objective:
Implement preemptive tests that will test the described behaviors of the listing_categories collection including their unique constraint, category associations dependent on the existence of categories documents, and document existence dependent on the referenced listing document.
Task Description:
Create Unit Tests that will check for our desired behavior and are meant to fail, as these behaviors have not been implemented yet.
Implementation:
Will write Unit Tests and ensure they fail with our base as is, but pass when our desired behavior is simulated.
Subtasks:
Testing and Debugging:
Ensuring tests correctly evaluate the desired behaviors by checking they pass when the desired behaviors are simulated.
Deadline:
Mar 20, 2025
Suggested Values:
Difficulty: 5 Urgency: 4