Socket
Socket
Sign inDemoInstall

jest-jasmine2

Package Overview
Dependencies
186
Maintainers
6
Versions
306
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.5.0 to 29.6.0

31

build/jasmine/jasmineLight.js

@@ -19,2 +19,33 @@ 'use strict';

var Symbol = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// This file is a heavily modified fork of Jasmine. Original license:
/*
Copyright (c) 2008-2016 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* eslint-disable sort-keys, local/prefer-spread-eventually, local/prefer-rest-params-eventually */
const testTimeoutSymbol = Symbol.for('TEST_TIMEOUT_SYMBOL');

@@ -21,0 +52,0 @@ const create = function (createOptions) {

11

build/jasmineAsyncInstall.js

@@ -19,2 +19,12 @@ 'use strict';

globalThis[Symbol.for('jest-native-promise')] || globalThis.Promise;
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* This module adds ability to test async promise code with jasmine by
* returning a promise from `it/test` and `before/afterEach/All` blocks.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-function

@@ -60,3 +70,2 @@ const doneFnNoop = () => {};

: fn;
// @ts-expect-error: TS thinks `wrappedFn` is a generator function
const returnValue = wrappedFn.call({}, doneFnNoop);

@@ -63,0 +72,0 @@ if ((0, _jestUtil.isPromise)(returnValue)) {

@@ -17,2 +17,8 @@ 'use strict';

globalThis[Symbol.for('jest-native-promise')] || globalThis.Promise;
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
function queueRunner(options) {

@@ -19,0 +25,0 @@ const token = new _PCancelable.default((onCancel, resolve) => {

@@ -15,2 +15,8 @@ 'use strict';

globalThis[Symbol.for('jest-native-promise')] || globalThis.Promise;
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
class Jasmine2Reporter {

@@ -17,0 +23,0 @@ _testResults;

28

package.json
{
"name": "jest-jasmine2",
"version": "29.5.0",
"version": "29.6.0",
"repository": {

@@ -20,7 +20,7 @@ "type": "git",

"dependencies": {
"@jest/environment": "^29.5.0",
"@jest/expect": "^29.5.0",
"@jest/source-map": "^29.4.3",
"@jest/test-result": "^29.5.0",
"@jest/types": "^29.5.0",
"@jest/environment": "^29.6.0",
"@jest/expect": "^29.6.0",
"@jest/source-map": "^29.6.0",
"@jest/test-result": "^29.6.0",
"@jest/types": "^29.6.0",
"@types/node": "*",

@@ -30,10 +30,10 @@ "chalk": "^4.0.0",

"is-generator-fn": "^2.0.0",
"jest-each": "^29.5.0",
"jest-matcher-utils": "^29.5.0",
"jest-message-util": "^29.5.0",
"jest-runtime": "^29.5.0",
"jest-snapshot": "^29.5.0",
"jest-util": "^29.5.0",
"jest-each": "^29.6.0",
"jest-matcher-utils": "^29.6.0",
"jest-message-util": "^29.6.0",
"jest-runtime": "^29.6.0",
"jest-snapshot": "^29.6.0",
"jest-util": "^29.6.0",
"p-limit": "^3.1.0",
"pretty-format": "^29.5.0"
"pretty-format": "^29.6.0"
},

@@ -49,3 +49,3 @@ "devDependencies": {

},
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c"
"gitHead": "c1e5b8a38ef54bb138409f89831942ebf6a7a67e"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc