mguterl / chai-datetime

Matchers for chai to help with common date equality assertions against JavaScript Date objects.
MIT License
45 stars 17 forks source link

chai v5 support #57

Open justin-mellor opened 2 months ago

justin-mellor commented 2 months ago

Chai v5 was released in December 2023. It would be great if chai-datetime could be compatible.

Currently if you upgrade chai to v5 you get

TypeError: Cannot read properties of undefined (reading 'use')

chai.use(chaiDate);

I have a simple repro in https://github.com/justin-mellor/chai-datetime-chai5

mguterl commented 2 months ago

Thanks for the report! I'm not actively using chai, but I may take a look at what it will take to support the new API.