From 8008d9d4c12e6ceff256a0640d7ef02bd8636d96 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Thu, 1 Mar 2018 13:50:01 -0500 Subject: [PATCH] Mention meteor.testModule in History.md. --- History.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index 5e4ffbd827..2e75e92d8b 100644 --- a/History.md +++ b/History.md @@ -13,10 +13,46 @@ 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. + 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`: + ```js + "meteor": { + "mainModule": { + "client": false, + "server": "server/main.js" + } + } + ``` [Feature #135](https://github.com/meteor/meteor-feature-requests/issues/135) [PR #9690](https://github.com/meteor/meteor/pull/9690) +* In addition to `meteor.mainModule`, the `"meteor"` section of + `package.json` may also specify `meteor.testModule` to control which + test modules are loaded by `meteor test` or `meteor test --full-app`: + ```js + "meteor": { + "mainModule": {...}, + "testModule": "tests.js" + } + ``` + If your client and server test files are different, you can expand the + `testModule` configuration using the same syntax as `mainModule`: + ```js + "meteor": { + "testModule": { + "client": "client/tests.js", + "server": "server/tests.js" + } + } + ``` + 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 + check `Meteor.isAppTest`. The module(s) specified by `meteor.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. + * The `reify` npm package has been updated to version 0.14.2. * The `meteor-babel` npm package has been updated to version