When creating an api project, copy over integrations tests and add test script to package.json
brent-hoover opened this issue ยท comments
Steps for making this work:
- Copy over entire
test
directory from reaction core - Move
checkNodeVersion.csj
from "utils" to "src" - Add tests scripts to package.json
- Copy over jest config
- Copy over babel config
Needs to have Mongo running. The Jest setup needs to set the MONGO_URL to MONGO_URL=mongodb://localhost:27017/test
Hi @zenweasel ,
I was looking into this issue.
While point 1 & 2 are done, I see that point 3 is already there here:- https://github.com/reactioncommerce/cli/blob/trunk/commands/create-project-api.js#L45
I am not sure when you mentioned copy over 4 & 5. I couldn't find the respective config files in the repo.
Awaiting you reply please regarding the next set of actions.
Kind Regards,
Aditya
Please assign it to me, as I am taking a look into it
@aditya-padhi-kbl These files now reside here
๐ This issue has been resolved in version 1.5.1 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐