knex.js: I need a developer with experience doing unit test of Knex.js
Budget: €30 – €250 EUR
Hello,
**IDEAL BUDGET**
The budget was calculated for a max 5h work which will be 100.
The budget can be discussed only if will be presented evidence is really need it to achieve the goal.
If you ar enot used to the Knex.js technology and how to make unit test you will be considered only as last option to this job.
**INTRO**
The project is a service built in Node, GraphQL, and KnexJS. Ignore GraphQL as out of scope for this task.
The project has unit tests which were passing all with an old version of KnexJS using a library called `mock-knex`
The project cannot be run using npm start or else because is a part of a multi-service environment. Due to this reason you need to be able to understand the code by reading the unit tests.
If you have Docker maybe you can run integrations tests that generate testing data and see there how that works. However, I'm not an expert on Docker so I have no knowledge if that could help you or not.
The project was updated to the new Knex.js version and now 4 tests are not running due that the library `mock-knex` is no anymore updated and compatible with the new KnexJS.
Right now to the project was added a new library called `knex-mock-client` but the tests need to be updated to pass again with the new library or a different one.
**YOUR TASK JOB**
1 . Fix 4 failing unit tests which were passed before using a library or other methodology you believe will be right
2. Deliver only the unit test codes which are passing and any other library, config you used to make them pass in the right way
Thank you
**IDEAL BUDGET**
The budget was calculated for a max 5h work which will be 100.
The budget can be discussed only if will be presented evidence is really need it to achieve the goal.
If you ar enot used to the Knex.js technology and how to make unit test you will be considered only as last option to this job.
**INTRO**
The project is a service built in Node, GraphQL, and KnexJS. Ignore GraphQL as out of scope for this task.
The project has unit tests which were passing all with an old version of KnexJS using a library called `mock-knex`
The project cannot be run using npm start or else because is a part of a multi-service environment. Due to this reason you need to be able to understand the code by reading the unit tests.
If you have Docker maybe you can run integrations tests that generate testing data and see there how that works. However, I'm not an expert on Docker so I have no knowledge if that could help you or not.
The project was updated to the new Knex.js version and now 4 tests are not running due that the library `mock-knex` is no anymore updated and compatible with the new KnexJS.
Right now to the project was added a new library called `knex-mock-client` but the tests need to be updated to pass again with the new library or a different one.
**YOUR TASK JOB**
1 . Fix 4 failing unit tests which were passed before using a library or other methodology you believe will be right
2. Deliver only the unit test codes which are passing and any other library, config you used to make them pass in the right way
Thank you