jest-test-each
Advanced tools
Comparing version 0.3.19 to 0.3.20
@@ -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", |
17195
346