-
I've run into an issue when attempting to mock `Model.create` in my unit tests using sinon.
After a bit of work I did find a workaround that it pretty ugly, but works.
`const stubbedInstance = sinon…
-
I'm looking at using sequelize-mocking for testing.
Does anyone have any experience with any mocking packages?
Thanks,
Jonathan
-
Two vulnerabilities detected: https://snyk.io/test/github/rochejul/sequelize-mocking?severity=high&severity=medium&severity=low
To resolve it:
* Use lodash@4.17.5
* Use sqlite3@4.0.0
-
Hello! I currently have the following, mostly default example, code which produces the error 'TypeError: MockDummyDao.$useHandler is not a function.'
```
import SequelizeMock from 'sequelize-mock'…
-
In the latest version of quibble (v0.5.3) there seems to be an issue where td.replace is affecting modules totally unrelated to the module i am replacing
for example, our project currently uses Seq…
-
I'm trying to write tests for some functions that depends on Sequelize and consume data from MySQL, but I don't want my tests to really hit the db, I want just to mock the return. I tried to look on t…
-
I've been looking on the web but I could not find any good advice on whether it could be considered a good practice to use constructors (`new MyClass(...params).myMethod()`) over classes with only sta…
ilDon updated
5 years ago
-
## Notes
This is not yet an issue on staging, but appears to multiple developers. When they change an ARP season date it does not show up on the ARP's page, and the ability to buy the permit does not…
-
**This is just a question.**
I just wrote a unit test suite where I check the integrity of my models (password should not be < 8 etc.) but I have to perform a database connection on each test therefo…
-
I am using `graphql` in a hobby project that I am writing, mainly to study and try out new technologies and design patterns.
I have read a few tutorials and examples for using `graphql`, but in eve…