You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use rescript which compiles to js. It compiles imports like this:
import * as Dayjs from "dayjs";
As a result, my component using dayjs is untestable. When it runs in jest it errors: with
TypeError: t is not a function
``
**Expected behavior**
Be able to compile rescript and run tests easy!
**Information**
- Day.js Version ^1.10.7
- OS: Windows
- Browser: N/A node unit test
- Time zone: EST
The text was updated successfully, but these errors were encountered:
Describe the bug
I use rescript which compiles to js. It compiles imports like this:
import * as Dayjs from "dayjs";
As a result, my component using dayjs is untestable. When it runs in jest it errors: with
The text was updated successfully, but these errors were encountered: