mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't ignore tests/ when running meteor test-app.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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\/$/,
|
||||
|
||||
Reference in New Issue
Block a user