Closed Talg123 closed 2 years ago
Hi, looks like the mock missing few key functions from the return transaction function. for example:
const transaction = await sequelize.transaction(); const addedUser = await Users.create(myUserObject, { transaction }); // doing some other code with transaction; try { await transaction.commit(); } catch (e) { await transaction.rollback() }
that some basic way of working with transaction those days.
Hi, looks like the mock missing few key functions from the return transaction function. for example:
that some basic way of working with transaction those days.