This is part of my project directory.
Unfortunately, for some strange reasons, all but one tests are executed, the one contained in the file methods.transformations.test.js
.
Everything seemed fine this morning, then I ran into some issues and fixed them, and when I looked back at the test results, all my tests are no longer executed. All the files are loaded, and if I put a console.log
inside every describe
, I see things being echo'ed, but no it(...)
is executed.
I'm not sure what kind of information I can provide to help resolve this issue. Can someone help?
I'm using
practicalmeteor:[email protected]_1
practicalmeteor:[email protected]_6
practicalmeteor:[email protected]
I just created a file /test/foo.test.js
with this content :
describe('Testing', function () {
console.log("Testing...");
it('should test', function () {
console.log("This should be echoed");
});
});
And only "Testing"
is echoed. Whereas the exact same code is put inside methods.transformations.test.js
and everything is executed.
Yes, the Meteor Testing docs say that
The Meteor build tool and the meteor test command ignore any files located in any tests/ directory.
But my directory is only called test
, not tests
. Despite this, I went on and created a file called items.specs.js
However, the test case (i.e. the it(...)
) is not executed.
I run my tests using npm test
defined in my package.json
as
...
"test": "meteor test --driver-package practicalmeteor:mocha --port 3100"
...
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments