Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var glob = require('glob');
var Blueprint = require('@angular/cli/ember-cli/lib/models/blueprint');
var path = require('path');
var tmp = require('../helpers/tmp');
var root = path.join(__dirname, '../../packages/@angular/cli');
var util = require('util');
var minimatch = require('minimatch');
var intersect = require('lodash/intersection');
var remove = require('lodash/remove');
var unique = require('lodash/uniq');
var forEach = require('lodash/forEach');
var any = require('lodash/some');
var EOL = require('os').EOL;
var existsSync = require('exists-sync');
var defaultIgnoredFiles = Blueprint.ignoredFiles;
describe('Acceptance: ng update', function () {
this.timeout(20000);
beforeEach(function () {
// Make a copy of defaultIgnoredFiles.
Blueprint.ignoredFiles = defaultIgnoredFiles.splice(0);
return tmp.setup('./tmp').then(function () {
process.chdir('./tmp');
});
});
afterEach(function () {
return tmp.teardown('./tmp');
});
remove(array, function (fn) {
return any(Blueprint.ignoredFiles, function (ignoredFile) {
return minimatch(fn, ignoredFile, { matchBase: true });
});
});
}