jasmine
Advanced tools
Comparing version 3.10.0 to 3.99.0
@@ -219,2 +219,8 @@ const path = require('path'); | ||
this.requires.forEach(function(r) { | ||
if (r.startsWith('./') || r.startsWith("../")) { | ||
console.warn('DEPRECATION: requires with relative paths (in this case ' + | ||
`${r}) are currently resolved relative to the jasmine/lib/jasmine ` + | ||
'module but will be relative to the current working directory in ' + | ||
'Jasmine 4.0.'); | ||
} | ||
require(r); | ||
@@ -298,3 +304,7 @@ }); | ||
if (config.verboseDeprecations !== undefined) { | ||
envConfig.verboseDeprecations = config.verboseDeprecations; | ||
} | ||
/** | ||
@@ -331,3 +341,3 @@ * Specifies how to load files with names ending in .js. Valid values are | ||
if(config.helpers) { | ||
this.addHelperFiles(config.helpers); | ||
this.addMatchingHelperFiles(config.helpers); | ||
} | ||
@@ -352,3 +362,3 @@ | ||
if(config.spec_files) { | ||
this.addSpecFiles(config.spec_files); | ||
this.addMatchingSpecFiles(config.spec_files); | ||
} | ||
@@ -389,3 +399,8 @@ }; | ||
*/ | ||
Jasmine.prototype.addSpecFiles = Jasmine.prototype.addMatchingSpecFiles; | ||
Jasmine.prototype.addSpecFiles = function(globs) { | ||
this.env.deprecated('jasmine#addSpecFiles is deprecated. Use ' + | ||
'jasmine#addMatchingSpecFiles instead.'); | ||
this.addMatchingSpecFiles(globs); | ||
}; | ||
/** | ||
@@ -399,3 +414,7 @@ * Synonym for {@link Jasmine#addMatchingHelperFiles} | ||
*/ | ||
Jasmine.prototype.addHelperFiles = Jasmine.prototype.addMatchingHelperFiles; | ||
Jasmine.prototype.addHelperFiles = function(globs) { | ||
this.env.deprecated('jasmine#addHelperFiles is deprecated. Use ' + | ||
'jasmine#addMatchingHelperFiles instead.'); | ||
this.addMatchingHelperFiles(globs); | ||
}; | ||
@@ -461,2 +480,7 @@ Jasmine.prototype.addRequires = function(requires) { | ||
Jasmine.prototype.onComplete = function(onCompleteCallback) { | ||
this.env.deprecated( | ||
'Jasmine#onComplete is deprecated. Instead of calling onComplete, set ' + | ||
"the Jasmine instance's exitOnCompletion property to false and use the " + | ||
'promise returned from the execute method.' | ||
); | ||
this.completionReporter.onComplete(onCompleteCallback); | ||
@@ -564,3 +588,3 @@ }; | ||
this.specFiles = []; | ||
this.addSpecFiles(files); | ||
this.addMatchingSpecFiles(files); | ||
} | ||
@@ -567,0 +591,0 @@ |
@@ -13,3 +13,3 @@ { | ||
"license": "MIT", | ||
"version": "3.10.0", | ||
"version": "3.99.0", | ||
"repository": { | ||
@@ -32,3 +32,3 @@ "type": "git", | ||
"glob": "^7.1.6", | ||
"jasmine-core": "~3.10.0" | ||
"jasmine-core": "~3.99.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "bin": "./bin/jasmine.js", |
48519
1221
+ Addedjasmine-core@3.99.1(transitive)
- Removedjasmine-core@3.10.1(transitive)
Updatedjasmine-core@~3.99.0