As of Meteor 1.3, Meteor now exposes the NODE_ENV variable on the client by default.
if (Meteor.isClient) {
Meteor.startup(function () {
if(process.env.NODE_ENV === "testing"){
console.log("In testing...");
}
if(process.env.NODE_ENV === "production"){
console.log("In production...");
}
});
}