Don't ignore tests/ when running meteor test-app.

This commit is contained in:
Avital Oliver
2016-02-05 11:43:15 -08:00
parent 86e685c3dd
commit 43bb94cccc
2 changed files with 7 additions and 5 deletions

View File

@@ -2,12 +2,11 @@ runTests = function() {
// hide any existing HTML but don't remove it
$('body > *').css({display: 'none'});
document.head.title = "Tests";
MochaRunner.setReporter(practical.mocha.HtmlReporter)
MochaRunner.setReporter(practical.mocha.HtmlReporter);
inRange = false;
var rules = _.filter(document.styleSheets[0].cssRules, (r) => {
var rules = _.filter(document.styleSheets[0].cssRules, (r) => {
if (r.selectorText && r.selectorText.match(/scoped/)) {
inRange = !inRange;
};
@@ -18,6 +17,6 @@ runTests = function() {
$('head link[rel=stylesheet]').remove();
$('head').append('<style>' + styles + '</style>');
}
};
Meteor.isTest = true;

View File

@@ -1388,12 +1388,15 @@ _.extend(PackageSource.prototype, {
);
const anyLevelExcludes = [
/^tests\/$/,
/^node_modules\/$/,
arch === "os" ? /^client\/$/ : /^server\/$/,
...sourceReadOptions.exclude,
];
if (!global.testCommandMetadata) {
anyLevelExcludes.push(/^tests\/$/);
}
const topLevelExcludes = isApp ? [
...anyLevelExcludes,
/^packages\/$/,