Closed arifmahmudrana closed 5 years ago
I haven't found it any other place but in the history: https://github.com/meteor/meteor/blob/devel/History.md
When specified, these entry points override Meteor's default module loading semantics, rendering imports directories unnecessary. If mainModule is left unspecified for either client or server, the default rules will apply for that architecture, as before. To disable eager loading of modules on a given architecture, simply provide a mainModule value of false:
This yields both for mainModule
but also for testModule
as far as I know - but I haven't really tested it. At least this makes much more sense when reading the following part:
The same test module will be loaded whether or not you use the
--full-app
option. Any tests that need to detect--full-app
should checkMeteor.isAppTest
. The module(s) specified bymeteor.testModule
can import other test modules at runtime, so you can still distribute test files across your codebase; just make sure you import the ones you want to run.
This last sentence should make it clear. But it's not that clear anyways, I think ... and it's missing a good part in the official docs, or at least I haven't found it.
Please add if anyone has additional resources that could be of value.
@arifmahmudrana was what I wrote helpful to you? Is the issue still present? If I do not hear back from you by the end of this year, I'll close this issue as reproducible and missing feedback.
Same problem here. My tests are just not being executed.
I also had the meteor section in my package.json, but even when I delete it, the same problem occurs.
How can I activate eager-loading of test files in the imports
folder, as described in the Meteor guide?!
As said, this is not the responsibility of this package but of the framework itself.
If you need some help, please ask your question on the Meteor Community Slack channel: https://meteor-community.slack.com/
I have a very basic meteor app. I have added your package now I added a test file in
imports/startup/simple-schema.tests.js
I was running
npm run test-app
so it should be logged in console but that file actually doesn't run. But when I added this snippet to mytests/main.js
Todo
is logged in console. So am I missing something.Meteor version 1.7.0.5.
My directory tree & package.json