How can we test the following line of code using sequelize mock?
let newUser = new User();
When I tried calling the function that contains this line of code it is throwing an error saying User is not a constructor.
I'm mocking the User model in my test file the following way:
jest.mock('./../../../models/User', () => {
const SequelizeMock = require("sequelize-mock");
const dbMock = new SequelizeMock();
return dbMock.define('User', {})
})