📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

jest-theories

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-theories - npm Package Compare versions

Comparing version

to
1.5.0

4

index.d.ts

@@ -8,2 +8,6 @@ /**

declare function theoretically<T>(description: string | ((theory: T, index: number) => string), theories: T[], testFunction: (theory: T) => Promise<void> | void): void;
declare namespace theoretically {
export function only<T>(description: string | ((theory: T, index: number) => string), theories: T[], testFunction: (theory: T) => Promise<void> | void) : void;
}
export default theoretically;
import format from 'string-format';
const theoretically = (testNameCreator, theories, testFunc) => {
const _theoretically = (test) => (testNameCreator, theories, testFunc) => {
if (!test) {

@@ -30,2 +31,6 @@ throw new Error('Jest test global must be accessible to use jest-theories');

const theoretically = _theoretically(test);
const only = test.only;
theoretically.only = _theoretically(only);
export default theoretically;

2

package.json
{
"name": "jest-theories",
"version": "1.3.0",
"version": "1.5.0",
"scripts": {

@@ -5,0 +5,0 @@ "build": "babel index.js --out-dir dist"