BlinkUX/sequelize-mock
A simple mock interface specifically for testing code relying on Sequelize models
JavaScriptMIT
Issues
- 6
$userHandler does not mock 'create' method
#50 opened by peterstarling - 4
count() method missing on Model
#64 opened by grimurd - 1
- 14
- 0
SequelizeMockEmptyQueryQueueError: No query results are queued. Unexpected query attempted to be run
#100 opened by brightmileDaniel - 1
Feature Request - Model.findByPk
#71 opened by JustinMGaiam - 0
with mock model tableAttributes undefined
#98 opened by GopalPatidar54 - 0
Broken link
#95 opened by Tamir198 - 0
transaction commit/rollback/LOCK/afterCommit
#87 opened by Talg123 - 1
fulfilling rawQuery from mock database
#86 opened by alichherawalla - 6
- 1
- 0
Returning NaN when use sequelize.fn("count")
#89 opened by Hoffmano - 2
- 5
- 1
Support v5
#84 opened by rgaiacs - 2
- 0
BelongsTo without 'get' prefix
#82 opened by igormcoelho - 3
- 0
Models sometimes return columns as anonymous functions instead of the actual values
#81 opened by dyc3 - 1
Maintainership
#78 opened by josephwegner - 0
destroy and findOne returning all instances
#79 opened by AbreezaSaleem - 6
more detailed example tests would be great
#44 opened by pkyeck - 0
Mock model definition is not strict
#77 opened by amang95 - 3
findOne() saving over table variable
#69 opened by Amber-Williams - 0
Is it possible to define class level methods?
#76 opened by shamoons - 3
- 4
How to multiple record mock
#55 opened by ina6ra - 5
- 1
clearHandlers not supported in models
#58 opened by harshitj2005 - 0
- 0
SequelizeMock as a drop-in replacement
#70 opened by fantactuka - 2
Mock a SQL function
#45 opened by biruks - 1
updateAttributes() function doesn't exist.
#66 opened by edu791 - 0
delete this
#65 opened by edu791 - 0
Getting error while doing setDataValue
#63 opened by shkshubham - 3
Sequelize v4 Support
#33 opened by LoveAndCoding - 0
Declaring a Mock with a GEOMETRY Field
#56 opened by dalexander-trc - 1
Documentation example for mocking raw queries
#53 opened by justhamade - 0
Mock missing close() function and QueryTypes
#54 opened by justhamade - 1
Tests fail on trying to access model's .prototype
#46 opened by toxuin - 4
DataTypes not being returned
#37 opened by fnawratil - 4
Object Association Persistence?
#38 opened by tills13 - 3
- 2
$useHandler and instance methods
#31 opened by joelwatson - 2
Docs glitch? require('sequelize-mock')();
#26 opened by martinhbramwell - 1
Clarification on this repo
#28 opened by AnthonyTsang - 7
Support for conditional queues
#18 opened by scinos - 1
Make it possible for instance methods to fail
#23 opened by jagged3dge - 0
Instance.save() doesn't clear the isNewRecord flag
#19 opened by scinos