angular-cli/scripts/run-packages-spec.js
Hans e3b48da4b2 feat(@ngtools/logger): Implement a reactive logger. (#3774)
It is typescript friendly and ultra performant. Using it in e2e tests for a PoC.
2016-12-28 19:02:55 -08:00

25 lines
672 B
JavaScript

#!/usr/bin/env node
'use strict';
require('../lib/bootstrap-local');
const glob = require('glob');
const path = require('path');
const Jasmine = require('jasmine');
const projectBaseDir = path.join(__dirname, '../packages');
// Create a Jasmine runner and configure it.
const jasmine = new Jasmine({ projectBaseDir: projectBaseDir });
jasmine.loadConfig({});
// Manually set exit code (needed with custom reporters)
jasmine.onComplete((success) => process.exitCode = !success);
// Run the tests.
const allTests =
glob.sync('packages/**/*.spec.ts')
.map(p => path.relative(projectBaseDir, p))
.filter(p => !/blueprints/.test(p));
jasmine.execute(allTests);