Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

jasmine

Package Overview
Dependencies
Maintainers
4
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine - npm Package Compare versions

Comparing version
6.1.0
to
7.0.0-pre.0
+10
-6
lib/jasmine.js

@@ -21,5 +21,5 @@ const ExitHandler = require('./exit_handler');

* spec-writing interface. If it is set to false, the spec-writing interface
* can be accessed via jasmine-core's `noGlobals` method, e.g.:
* can be imported from jasmine-core in spec files, e.g.:
*
* `const {describe, it, expect, jasmine} = require('jasmine-core').noGlobals();`
* `const {describe, it, expect, jasmine} = require('jasmine-core');`
*

@@ -47,8 +47,12 @@ * @name JasmineOptions#globals

if (options.globals === false) {
this.jasmine = jasmineCore.noGlobals().jasmine;
} else {
this.jasmine = jasmineCore.boot();
if (options.jasmineCore && !options.jasmineCore.installGlobals) {
throw new Error('bad core passed');
}
this.jasmine = jasmineCore.jasmine;
if (options.globals !== false) {
jasmineCore.installGlobals();
}
/**

@@ -55,0 +59,0 @@ * The Jasmine environment.

@@ -27,6 +27,4 @@ const path = require('path');

* spec-writing interface. If it is set to false, the spec-writing interface
* can be accessed in workers via jasmine-core's `noGlobals` method, e.g.:
*
* `const {describe, it, expect, jasmine} = require('jasmine-core').noGlobals();`
*
* can be imported from jasmine-core in spec files, e.g.: *
* `const {describe, it, expect, jasmine} = require('jasmine-core');` *
* @name ParallelRunnerOptions#globals

@@ -65,5 +63,4 @@ * @type (boolean | undefined)

const bootedCore = jasmineCore.boot();
const ParallelReportDispatcher = options.ParallelReportDispatcher ||
bootedCore.ParallelReportDispatcher;
jasmineCore.jasmine.ParallelReportDispatcher;
this.reportDispatcher_ = new ParallelReportDispatcher(error => {

@@ -74,3 +71,3 @@ console.error(error);

this.reportDispatcher_.addReporter(this.reporter_);
this.timer_ = new bootedCore.Timer();
this.timer_ = new jasmineCore.jasmine.Timer();

@@ -77,0 +74,0 @@ // Public. See RunnerBase jsdocs.

@@ -51,10 +51,7 @@ const regexSpecFilter = require("./filters/regex_spec_filter");

.then(core => {
let env;
if (options.globals === false) {
env = core.noGlobals().jasmine.getEnv();
} else {
env = core.boot().getEnv();
if (options.globals !== false) {
core.installGlobals();
}
const env = core.jasmine.getEnv();
env.addReporter(forwardingReporter(this.clusterWorker_));

@@ -61,0 +58,0 @@ env.addReporter({

@@ -13,3 +13,3 @@ {

"license": "MIT",
"version": "6.1.0",
"version": "7.0.0-pre.0",
"repository": {

@@ -37,3 +37,3 @@ "type": "git",

"glob": "^10.2.2 || ^11.0.3 || ^12.0.0 || ^13.0.0",
"jasmine-core": "~6.1.0"
"jasmine-core": "7.0.0-pre.0"
},

@@ -40,0 +40,0 @@ "bin": "./bin/jasmine.js",