mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
WIP: Unbreak meteor test-packages
This commit is contained in:
@@ -464,7 +464,7 @@ function doTestCommand(options) {
|
||||
// As long as the Meteor CLI runs a single command as part of each
|
||||
// process, this should be safe.
|
||||
global.testCommandMetadata = {
|
||||
testRunnerPackage: options['test-runner-package']
|
||||
driverPackage: options['driver-package']
|
||||
};
|
||||
|
||||
Console.setVerbose(!!options.verbose);
|
||||
|
||||
@@ -952,7 +952,12 @@ export var fullLink = Profile("linker.fullLink", function (inputFiles, {
|
||||
var weAreLinkingTheApp = (name === null);
|
||||
if (weAreLinkingTheApp) {
|
||||
prelinkedFiles.push({
|
||||
source: "if (Meteor.isClient) Meteor.startup(function() { Package[\"practicalmeteor:mocha\"].runTests(); });",
|
||||
source: `\
|
||||
if (Meteor.isClient) {
|
||||
Meteor.startup(function() {
|
||||
Package[\"${global.testCommandMetadata.driverPackage}\"].runTests();
|
||||
});
|
||||
}`,
|
||||
servePath: "/packages/runTests.js"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user