Deprecate the suppressLoadErrors option
This was intended as a 3.0 migration aid for browser users who had dependencies that triggered errors at load time. However, it was never documented and never supported by jasmine-brower-runner, karma, or any other commonly used tool for runing Jasmine in the browser. There is no evidence of it actually being used. It is, however, starting to show up in machine-generated "tutorials".
This commit is contained in:
@@ -518,6 +518,14 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
* @return {Promise<JasmineDoneInfo>}
|
||||
*/
|
||||
this.execute = async function(runablesToRun) {
|
||||
if (options.suppressLoadErrors) {
|
||||
this.deprecated(
|
||||
'The suppressLoadErrors option is deprecated and will be removed ' +
|
||||
'in a future release.',
|
||||
{ ignoreRunnable: true, omitStackTrace: true }
|
||||
);
|
||||
}
|
||||
|
||||
installGlobalErrors();
|
||||
|
||||
if (parallelLoadingState) {
|
||||
|
||||
Reference in New Issue
Block a user