I’m having some weird behaviors when trying to add an integration test on an async function that calls other async functions, seems the code doesn’t run fully, problem is if I run the function on regular development mode it works as expected, but when running from a test it seems it misses calling some other async functions.
I’m using babel-plugin-istanbul, babel-plugin-rewire-exports, chai, chai-as-promised and sinon.
I run the tests with this npm run
"coverage:watch": "BABEL_ENV=COVERAGE COVERAGE=1 COVERAGE_VERBOSE=1 COVERAGE_APP_FOLDER=$PWD/ TEST_WATCH=1 MONGO_URL=mongodb://localhost:27017/worker meteor test --driver-package meteortesting:mocha --port 4000 --settings settings-development.json"
and this is my babel configuration on my packages.json
"babel": {
"env": {
"COVERAGE": {
"plugins": [
"istanbul",
"babel-plugin-rewire-exports",
{
"unsafeConst": true
}
]
}
}
},
Any help will be truly appreciated as I have no clue why it doesn’t fully run on the integration test but on the regular app it works.
Thanks a lot!