Skip to content

Commit 9e4c383

Browse files
committed
Merge pull request meteor#6479 from meteor/unify-build-mode
`buildMode === "test"` for both `test` and `test-packages`
2 parents 322e86c + fe0c65c commit 9e4c383

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tools/cli/commands.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,14 +1731,8 @@ var runTestAppForPackages = function (projectContext, options) {
17311731
var buildOptions = {
17321732
minifyMode: options.production ? 'production' : 'development'
17331733
};
1734-
if (options["test-packages"]) {
1735-
buildOptions.buildMode = buildOptions.minifyMode;
1736-
} else if (options["test"]) {
1737-
buildOptions.buildMode = "test";
1738-
} else {
1739-
throw new Error("Neither test-packages nor test in options");
1740-
}
1741-
1734+
buildOptions.buildMode = "test";
1735+
17421736
if (options.deploy) {
17431737
// Run the constraint solver and build local packages.
17441738
main.captureAndExit("=> Errors while initializing project:", function () {

0 commit comments

Comments
 (0)