forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): refactor test.unit.cjs to use the broccoli pipeline
This change solves several problems: - the broccoli pipeline is used to compile the node/cjs tree upon any change to the modules/ directory - jasmine tests run in a new process removing the need to clean up environment after each test - since we transpile only those test files that are actually needed for node/cjs build, we transpile less and don't need to filter out tests
- Loading branch information
Showing
4 changed files
with
56 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
var glob = require('glob'); | ||
var minijasminenode2 = require('minijasminenode2'); | ||
var path = require('path'); | ||
// Require traceur to exposes $traceurRuntime on global context so that CJS files can run | ||
require('traceur/bin/traceur-runtime.js'); | ||
|
||
glob(process.argv[2], function (error, specFiles) { | ||
minijasminenode2.executeSpecs({ | ||
includeStackTrace: true, | ||
defaultTimeoutInterval: 1000, | ||
showColors: process.argv.indexOf('--no-color') === -1, | ||
specs: specFiles | ||
}); | ||
}); |