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

jest-test-each

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-test-each - npm Package Compare versions

Comparing version 0.3.19 to 0.3.20

4

dist/test-each-setup.js

@@ -24,7 +24,5 @@ "use strict";

it,
//itOnly: it.only, // todo
//itConcurrent: it.concurrent, // todo
describe,
},
}); // todo may need to setup
});
exports.testEnvDefault = testEnvDefault;

@@ -31,0 +29,0 @@ const TestEachEnv = (env) => {

@@ -70,5 +70,13 @@ "use strict";

}
const runCheck = () => {
if (this.onlyOne) {
testRunner('only() should be removed before committing', () => {
utils_1.guard(!this.onlyOne, 'Do not forget to remove .only() from your test before committing');
});
}
};
if (this.groups.length === 0) {
utils_1.guard(!!this.desc, 'Test should have name when no cases');
testRunner(this.desc, () => body({}));
runCheck();
return;

@@ -97,9 +105,2 @@ }

const runFlat = () => allCases.forEach(runCase(body));
const runCheck = () => {
if (this.onlyOne) {
testRunner('only() should be removed before committing', () => {
utils_1.guard(!this.onlyOne, 'Do not forget to remove .only() from your test before committing');
});
}
};
runSuite(this.env.describe, () => {

@@ -106,0 +107,0 @@ runCheck();

{
"name": "jest-test-each",
"version": "0.3.19",
"version": "0.3.20",
"description": "run parametrised tests easily [typesafe] without text tables or arrays of arrays.",

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

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