mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 11:03:53 +08:00
24 lines
629 B
JavaScript
24 lines
629 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, '');
|
|
|
|
// 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('tests/acceptance/**/*.spec.ts')
|
|
.map(p => path.relative(projectBaseDir, p));
|
|
|
|
jasmine.execute(allTests);
|