jest-each
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -36,4 +36,2 @@ (function (global, factory) { | ||
var globalTest = defaultGlobal.test; | ||
var globalIt = defaultGlobal.it; | ||
var test = parameterisedTests(parameterRows, globalTest); | ||
@@ -43,2 +41,3 @@ test.skip = parameterisedTests(parameterRows, globalTest.skip); | ||
var globalIt = defaultGlobal.it; | ||
var it = parameterisedTests(parameterRows, globalIt); | ||
@@ -48,3 +47,7 @@ it.skip = parameterisedTests(parameterRows, globalIt.skip); | ||
return { test: test, it: it }; | ||
var xtest = parameterisedTests(parameterRows, defaultGlobal.xtest); | ||
var xit = parameterisedTests(parameterRows, defaultGlobal.xit); | ||
var fit = parameterisedTests(parameterRows, defaultGlobal.fit); | ||
return { test: test, xtest: xtest, it: it, xit: xit, fit: fit }; | ||
}; | ||
@@ -51,0 +54,0 @@ |
{ | ||
"name": "jest-each", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Parameterised tests for Jest", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -13,6 +13,6 @@ # jest-each | ||
* Also under the alias: `.it` | ||
- `.test.only` to only run the parameterised tests | ||
* Also under the aliases: `.it.only` or `.fit` | ||
- `.test.skip` to skip the parameterised tests | ||
* Also under the alias: `.it.skip` | ||
- `.test.only` to only run the parameterised tests | ||
* Also under the alias: `.it.only` | ||
* Also under the aliases: `.it.skip` or `.xit` or `.xtest` | ||
- Asynchronous tests with `done` | ||
@@ -69,3 +69,3 @@ - Unique test titles with: [sprintf](https://github.com/alexei/sprintf.js) | ||
#### `.test.only(name, fn)` | ||
Alias: `.it.only(name, fn)` | ||
Aliases: `.it.only(name, fn)` or `.fit(name, fn)` | ||
@@ -79,3 +79,3 @@ ```js | ||
#### `.test.skip(name, fn)` | ||
Alias: `.it.skip(name, fn)` | ||
Aliases: `.it.skip(name, fn)` or `.xit(name, fn)` or `.xtest(name, fn)` | ||
@@ -82,0 +82,0 @@ ```js |
7519
58