Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/Find Mock library for Knex, and add tests to cover functions that call the database. #64

Open
Tracked by #63
acrosman opened this issue Jul 24, 2021 · 2 comments
Labels
testing Related to automated testing

Comments

@acrosman
Copy link
Owner

acrosman commented Jul 24, 2021

The knex library is used for database abstraction. To test those features we need a good mock or library that projects jest support for knex.

@acrosman acrosman mentioned this issue Jul 24, 2021
7 tasks
@acrosman acrosman added the testing Related to automated testing label Jul 24, 2021
@acrosman
Copy link
Owner Author

acrosman commented May 8, 2022

Consider using: https://github.com/felixmosh/knex-mock-client

@acrosman
Copy link
Owner Author

acrosman commented Oct 2, 2022

Also consider an auto-mock approach and see how it goes: https://jestjs.io/docs/mock-functions#mocking-modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Related to automated testing
Projects
None yet
Development

No branches or pull requests

1 participant