New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jest-jasmine2

Package Overview
Dependencies
Maintainers
4
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-jasmine2 - npm Package Compare versions

Comparing version 13.3.0-alpha.4eb0c908 to 13.3.0-alpha.8b48d59e

build/extendJasmineExpect.js

19

build/index.js

@@ -19,6 +19,6 @@ /**

const expect = require('jest-matchers').expect;
const fs = require('graceful-fs');
const jasminePit = require('./jasmine-pit');
const snapshot = require('jest-snapshot');
const fs = require('graceful-fs');
const path = require('path');
const vm = require('vm');

@@ -297,14 +297,11 @@

// extend jasmine matchers with `jest-matchers`
const jasmineExpect = env.expect;
env.expect = actual => {
const jasmineMatchers = jasmineExpect(actual);
const jestMatchers = expect(actual);
const not = Object.assign(jasmineMatchers.not, jestMatchers.not);
return Object.assign(jasmineMatchers, jestMatchers, { not });};
const snapshotState = snapshot.getSnapshotState(jasmine, testPath);
env.addReporter(reporter);
const snapshotState = snapshot.getSnapshotState(jasmine, testPath);
// `jest-matchers` should be required inside test environment (vm).
// Otherwise if they throw, the `Error` class will differ from the `Error`
// class of the test and `error instanceof Error` will return `false`.
runtime.requireModule(path.resolve(__dirname, './extendJasmineExpect.js'));
env.addReporter(reporter);
runtime.requireModule(testPath);

@@ -311,0 +308,0 @@ env.execute();

{
"name": "jest-jasmine2",
"version": "13.3.0-alpha.4eb0c908",
"version": "13.3.0-alpha.8b48d59e",
"repository": {

@@ -13,5 +13,5 @@ "type": "git",

"jasmine-check": "^0.1.4",
"jest-matchers": "^13.3.0-alpha.4eb0c908",
"jest-snapshot": "^13.3.0-alpha.4eb0c908",
"jest-util": "^13.3.0-alpha.4eb0c908"
"jest-matchers": "^13.3.0-alpha.8b48d59e",
"jest-snapshot": "^13.3.0-alpha.8b48d59e",
"jest-util": "^13.3.0-alpha.8b48d59e"
},

@@ -18,0 +18,0 @@ "jest": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc