Closed ZeRego closed 2 years ago
@ZeRego are you trying to test your migrations? With mock knex you don't have a physical database running behind it allows you to use query listeners to respond with the data that is expected from the database.
Yup, just realised that. Thanks for the reply. Closing this issue.
I'm trying to use 'mock-knex' for my unit tests but I can't figure out how I can migrate and seed the mocked database.
I keep getting an error when knex is checking the 'knex_migrations_lock' table.
Error message:
Code I have:
Am I missing something in the configuration, should I be doing the migration/seed differently ? or is this a limitation/bug ?