Skip to content

Refactor and add tests - #19

Merged
Joe-Ortiz merged 2 commits into
mainfrom
RefactorAndAddTests
Apr 28, 2026
Merged

Refactor and add tests#19
Joe-Ortiz merged 2 commits into
mainfrom
RefactorAndAddTests

Conversation

@Joe-Ortiz

@Joe-Ortiz Joe-Ortiz commented Apr 28, 2026

Copy link
Copy Markdown
Member

Closes #11
The project has been refactored to move away from a single JS file to classes spread across multiple files.

Unit tests and UI tests are also added

joeprogrammer88 and others added 2 commits April 28, 2026 13:22
- Implement end-to-end tests for instructor management including adding, removing, editing, and verifying instructors.
- Create end-to-end tests for schedule management covering creation, renaming, deletion, and switching between schedules.
- Introduce unit tests for DataStore functionality, ensuring proper schedule creation, loading, and data persistence.
- Add unit tests for helper functions, validating course display names, time parsing, and overlap detection.
- Develop unit tests for CourseManager, InstructorManager, and TimeslotManager, ensuring correct addition, removal, and conflict detection.
- Implement validation tests to check for missing quarters, programs, and instructor conflicts.
- Set up Vitest configuration for testing environment and localStorage mock.

Co-authored-by: Copilot <copilot@github.com>
@Joe-Ortiz
Joe-Ortiz merged commit b20f4dc into main Apr 28, 2026
4 checks passed
@Joe-Ortiz
Joe-Ortiz deleted the RefactorAndAddTests branch April 28, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor and add tests

1 participant