Reintroduce fn that clears stack occasionally
- setTimeout will clear stack, prevent overflow. We run this once every thousand specs. - Browser users will probably want a time-based clear rather than spec count based clear, as a thousand tests is typically quite slow. The reporter should provide this.
This commit is contained in:
@@ -159,6 +159,7 @@ process.argv.forEach(function(arg) {
|
||||
}
|
||||
});
|
||||
|
||||
// var specs = jasmine.getAllSpecFiles(__dirname + '/smoke', new RegExp("test.js$"));
|
||||
var specs = jasmine.getAllSpecFiles(__dirname, new RegExp("Spec.js$"));
|
||||
var domIndependentSpecs = [];
|
||||
for (var i = 0; i < specs.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user