Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-plugin-must-assert

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-plugin-must-assert - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

4

e2e/passing/__tests__/index.js

@@ -43,2 +43,4 @@ /**

test.todo('- todos should work');
describe('it() should behave the same as test()', () => {

@@ -71,2 +73,4 @@ it('basic tests should pass', () => {

});
it.todo('- it todos should work');
});

2

package.json
{
"name": "jest-plugin-must-assert",
"version": "1.4.1",
"version": "1.5.0",
"description": "Jest plugin for async tests",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -167,8 +167,6 @@ const StackUtils = require('stack-utils');

const donotpatch = ['each', 'skip', 'todo'];
Object.keys(global.test).forEach(key => {
if (
typeof global.test[key] === 'function' &&
key !== 'each' &&
key !== 'skip'
) {
if (typeof global.test[key] === 'function' && !donotpatch.includes(key)) {
enhancedTest[key] = enhanceJestImplementationWithAssertionCheck(

@@ -175,0 +173,0 @@ global.test[key]

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