mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-12-12 09:52:37 +00:00
[tests] migrate from jest to vitest (#3940)
This is a big change, but I think it's a good move, as `vitest` is much more modern than `jest`. I'm excited about the UI watch feature (run `npm run test:ui`), for example - it's really helpful and saves time when debugging tests. I had to adjust a few tests because they had time related issues, but basically we are now testing the same things - even a bit better and less flaky (I hope). What do you think?
This commit is contained in:
committed by
GitHub
parent
b542f33a0a
commit
462abf7027
87
tests/mocks/calendar_duplicates_1.ics
Normal file
87
tests/mocks/calendar_duplicates_1.ics
Normal file
@@ -0,0 +1,87 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//MagicMirror//Test Calendar//EN
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
X-WR-CALNAME:Duplicates Test Calendar 1
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-1@magicmirror.test
|
||||
DTSTART:20240916T100000Z
|
||||
DTEND:20240916T110000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 1
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-2@magicmirror.test
|
||||
DTSTART:20240917T140000Z
|
||||
DTEND:20240917T150000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 2
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-3@magicmirror.test
|
||||
DTSTART:20240918T080000Z
|
||||
DTEND:20240918T090000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 3
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-4@magicmirror.test
|
||||
DTSTART:20240919T120000Z
|
||||
DTEND:20240919T130000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 4
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-5@magicmirror.test
|
||||
DTSTART:20240920T160000Z
|
||||
DTEND:20240920T170000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 5
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-6@magicmirror.test
|
||||
DTSTART:20240921T100000Z
|
||||
DTEND:20240921T110000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 6
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-7@magicmirror.test
|
||||
DTSTART:20240922T140000Z
|
||||
DTEND:20240922T150000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 7
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-8@magicmirror.test
|
||||
DTSTART:20240923T080000Z
|
||||
DTEND:20240923T090000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 8
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-9@magicmirror.test
|
||||
DTSTART:20240924T120000Z
|
||||
DTEND:20240924T130000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 9
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-10@magicmirror.test
|
||||
DTSTART:20240925T160000Z
|
||||
DTEND:20240925T170000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 10
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
87
tests/mocks/calendar_duplicates_2.ics
Normal file
87
tests/mocks/calendar_duplicates_2.ics
Normal file
@@ -0,0 +1,87 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//MagicMirror//Test Calendar//EN
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
X-WR-CALNAME:Duplicates Test Calendar 2
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-1-clone@magicmirror.test
|
||||
DTSTART:20240916T100000Z
|
||||
DTEND:20240916T110000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 1
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-2-clone@magicmirror.test
|
||||
DTSTART:20240917T140000Z
|
||||
DTEND:20240917T150000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 2
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-3-clone@magicmirror.test
|
||||
DTSTART:20240918T080000Z
|
||||
DTEND:20240918T090000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 3
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-4-clone@magicmirror.test
|
||||
DTSTART:20240919T120000Z
|
||||
DTEND:20240919T130000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 4
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-5-clone@magicmirror.test
|
||||
DTSTART:20240920T160000Z
|
||||
DTEND:20240920T170000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 5
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-6-clone@magicmirror.test
|
||||
DTSTART:20240921T100000Z
|
||||
DTEND:20240921T110000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 6
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-7-clone@magicmirror.test
|
||||
DTSTART:20240922T140000Z
|
||||
DTEND:20240922T150000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 7
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-8-clone@magicmirror.test
|
||||
DTSTART:20240923T080000Z
|
||||
DTEND:20240923T090000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 8
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-9-clone@magicmirror.test
|
||||
DTSTART:20240924T120000Z
|
||||
DTEND:20240924T130000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 9
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
UID:duplicate-event-10-clone@magicmirror.test
|
||||
DTSTART:20240925T160000Z
|
||||
DTEND:20240925T170000Z
|
||||
DTSTAMP:20240915T000000Z
|
||||
SUMMARY:Duplicate Event 10
|
||||
STATUS:CONFIRMED
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
Reference in New Issue
Block a user