I\'m unable to mock moment() or moment().format functions. I have states where, currentDateMoment and currentDateFormatted ar
moment()
moment().format
currentDateMoment
currentDateFormatted
Don't use import * as moment from 'moment';
import * as moment from 'moment';
Use the default import
import moment from 'moment';
// tsconfig.json { "compilerOptions": { "esModuleInterop": true, "allowSyntheticDefaultImports": true, } }
read