Open omirbeck opened 11 months ago
i have a same question too.
same issue
https://day.js.org/docs/en/get-set/month
dayjs().month()
I had same issue when try to get list months of year, so here is my way:
Array.from({ length: 12 }, (_, i) => ({ label: dayjs().locale('vi').month(i).format('MMMM'), value: i + 1 }));
Describe the bug I use dayjs.months() it's work in a project, but when I try to test with jest, test failed with TypeError: _dayjs.default.months is not a function
Expected behavior Expected that test passed, because I couldn't see this error in Chrome log Can you give advice how to solve this problem or work around? Information