Socket
Socket
Sign inDemoInstall

jest-each

Package Overview
Dependencies
Maintainers
4
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-each - npm Package Compare versions

Comparing version 24.8.0 to 24.9.0

4

build/index.d.ts

@@ -10,3 +10,3 @@ /**

import bind from './bind';
declare type Global = NodeJS.Global;
declare type Global = Global.Global;
declare const each: {

@@ -35,3 +35,3 @@ (table: Global.EachTable, ...data: unknown[]): {

};
withGlobal(g: NodeJS.Global): (table: Global.EachTable, ...data: unknown[]) => {
withGlobal(g: Global.Global): (table: Global.EachTable, ...data: unknown[]) => {
describe: {

@@ -38,0 +38,0 @@ (title: string, suite: Global.EachTestFn, timeout?: number | undefined): void;

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

*/
declare type Template = Record<string, unknown>;
declare const _default: (title: string, headings: string[], row: unknown[]) => {

@@ -14,2 +15,8 @@ title: string;

export default _default;
export declare function getPath<Obj extends Template, A extends keyof Obj, B extends keyof Obj[A], C extends keyof Obj[A][B], D extends keyof Obj[A][B][C], E extends keyof Obj[A][B][C][D]>(obj: Obj, path: [A, B, C, D, E]): Obj[A][B][C][D][E];
export declare function getPath<Obj extends Template, A extends keyof Obj, B extends keyof Obj[A], C extends keyof Obj[A][B], D extends keyof Obj[A][B][C]>(obj: Obj, path: [A, B, C, D]): Obj[A][B][C][D];
export declare function getPath<Obj extends Template, A extends keyof Obj, B extends keyof Obj[A], C extends keyof Obj[A][B]>(obj: Obj, path: [A, B, C]): Obj[A][B][C];
export declare function getPath<Obj extends Template, A extends keyof Obj, B extends keyof Obj[A]>(obj: Obj, path: [A, B]): Obj[A][B];
export declare function getPath<Obj extends Template, A extends keyof Obj>(obj: Obj, path: [A]): Obj[A];
export declare function getPath<Obj extends Template>(obj: Obj, path: Array<string>): unknown;
//# sourceMappingURL=template.d.ts.map

@@ -6,2 +6,3 @@ 'use strict';

});
exports.getPath = getPath;
exports.default = void 0;

@@ -96,7 +97,8 @@

};
/* eslint import/export: 0*/
const getPath = (template, [head, ...tail]) => {
function getPath(template, [head, ...tail]) {
if (!head || !template.hasOwnProperty || !template.hasOwnProperty(head))
return template;
return getPath(template[head], tail);
};
}
{
"name": "jest-each",
"version": "24.8.0",
"version": "24.9.0",
"description": "Parameterised tests for Jest",

@@ -21,7 +21,7 @@ "main": "build/index.js",

"dependencies": {
"@jest/types": "^24.8.0",
"@jest/types": "^24.9.0",
"chalk": "^2.0.1",
"jest-get-type": "^24.8.0",
"jest-util": "^24.8.0",
"pretty-format": "^24.8.0"
"jest-get-type": "^24.9.0",
"jest-util": "^24.9.0",
"pretty-format": "^24.9.0"
},

@@ -34,3 +34,3 @@ "engines": {

},
"gitHead": "845728f24b3ef41e450595c384e9b5c9fdf248a4"
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1"
}

@@ -88,3 +88,3 @@ <div align="center">

// es5
const each = require('jest-each');
const each = require('jest-each').default;
```

@@ -91,0 +91,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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