Closed 0o-de-lally closed 7 years ago
@jsep , have you had any issues with upgrading to 1.4.1? Thanks in advance for your help!
Hello @keyscores I didn't have any issues with the latest version of meteor, however it seems to be a exception with on test in the server but it's really hard to tell without any code.
Can you provide a repo that duplicate this?
Thanks @jsep for looking into this. I'll try to make a reproduction that I can share in public. What is unusual is that only one test runs, and nothing else runs.
@jsep Here's a repo that isolates the issue. Previously a beforeEach() was acceptable outside of a describe() block. I may have had bad code and not realized it. Anyhow, this kind of error should be verbose IMHO.
Thanks @keyscores for the repo, the problem specifically with the beforeEach()
was that the callback was the done
argument.
You have this:
beforeEach( function(done)){
})
It should be like this:
beforeEach( function()){
})
You can you use any mocha hook such as beforeEach, afterEach
outside of a describe
block, but take in mind that those hooks are going attach to the root suite, so they are going to run in every suite of you tests.
My project has 50 tests in 5 different files, all running successfully in meteor 1.3.5. After I updated to meteor 1.4.1, only one test is running, and it's failing ( the alphabetical first file in the directory). I'm getting a silent error without any logging:
I don't see anything in the docs that would indicate a change. Any ideas?