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

expect-more-jest

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expect-more-jest - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

16

CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="2.1.0"></a>
# [2.1.0](https://github.com/JamieMason/expect-more/compare/expect-more-jest@2.0.0...expect-more-jest@2.1.0) (2018-08-25)
### Features
* **jest:** add types for asymmetric matchers ([13fe78d](https://github.com/JamieMason/expect-more/commit/13fe78d))
<a name="2.0.0"></a>

@@ -7,0 +19,0 @@

@@ -42,2 +42,47 @@ export declare type AnyFunction = (...args: any[]) => any;

namespace jest {
interface Expect {
toBeAfter<T>(other: Date): Matchers<T>;
toBeArray<T>(): Matchers<T>;
toBeArrayOfBooleans<T>(): Matchers<T>;
toBeArrayOfNumbers<T>(): Matchers<T>;
toBeArrayOfObjects<T>(): Matchers<T>;
toBeArrayOfSize<T>(size: number): Matchers<T>;
toBeArrayOfStrings<T>(): Matchers<T>;
toBeBefore<T>(other: Date): Matchers<T>;
toBeBoolean<T>(): Matchers<T>;
toBeCalculable<T>(): Matchers<T>;
toBeDate<T>(): Matchers<T>;
toBeDivisibleBy<T>(divisor: number): Matchers<T>;
toBeEmptyArray<T>(): Matchers<T>;
toBeEmptyObject<T>(): Matchers<T>;
toBeEmptyString<T>(): Matchers<T>;
toBeEvenNumber<T>(): Matchers<T>;
toBeFalse<T>(): Matchers<T>;
toBeFunction<T>(): Matchers<T>;
toBeIso8601<T>(): Matchers<T>;
toBeJsonString<T>(): Matchers<T>;
toBeLongerThan<T>(other: string | any[]): Matchers<T>;
toBeNonEmptyArray<T>(): Matchers<T>;
toBeNonEmptyObject<T>(): Matchers<T>;
toBeNonEmptyString<T>(): Matchers<T>;
toBeNumber<T>(): Matchers<T>;
toBeObject<T>(): Matchers<T>;
toBeOddNumber<T>(): Matchers<T>;
toBeRegExp<T>(): Matchers<T>;
toBeSameLengthAs<T>(other: string | any[]): Matchers<T>;
toBeShorterThan<T>(other: string | any[]): Matchers<T>;
toBeString<T>(): Matchers<T>;
toBeTrue<T>(): Matchers<T>;
toBeValidDate<T>(): Matchers<T>;
toBeWhitespace<T>(): Matchers<T>;
toBeWholeNumber<T>(): Matchers<T>;
toEndWith<T>(other: string): Matchers<T>;
toHandleMissingBranches<T>(shape: object | any[]): Matchers<T>;
toHandleMissingLeaves<T>(shape: object | any[]): Matchers<T>;
toHandleMissingNodes<T>(shape: object | any[]): Matchers<T>;
toHandleNullBranches<T>(shape: object | any[]): Matchers<T>;
toHandleNullLeaves<T>(shape: object | any[]): Matchers<T>;
toHandleNullNodes<T>(shape: object | any[]): Matchers<T>;
toStartWith<T>(other: string): Matchers<T>;
}
interface Matchers<R> {

@@ -44,0 +89,0 @@ toBeAfter(other: Date): R;

2

dist/lib/deep-reduce.d.ts
import { DeepReducer } from '..';
export declare const deepReduce: <T>(collection: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection, fn: DeepReducer<T>, memo: T) => T;
export declare const deepReduce: <T>(collection: import("expect-more/dist/typings").Collection, fn: DeepReducer<T>, memo: T) => T;
import { IGenerator } from '..';
export declare const missingBranches: (collection: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection) => IGenerator;
export declare const missingLeaves: (collection: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection) => IGenerator;
export declare const missingNodes: (collection: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection) => IGenerator;
export declare const nullBranches: (collection: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection) => IGenerator;
export declare const nullLeaves: (collection: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection) => IGenerator;
export declare const nullNodes: (collection: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection) => IGenerator;
export declare const missingBranches: (collection: import("expect-more/dist/typings").Collection) => IGenerator;
export declare const missingLeaves: (collection: import("expect-more/dist/typings").Collection) => IGenerator;
export declare const missingNodes: (collection: import("expect-more/dist/typings").Collection) => IGenerator;
export declare const nullBranches: (collection: import("expect-more/dist/typings").Collection) => IGenerator;
export declare const nullLeaves: (collection: import("expect-more/dist/typings").Collection) => IGenerator;
export declare const nullNodes: (collection: import("expect-more/dist/typings").Collection) => IGenerator;

@@ -1,1 +0,1 @@

export declare const getIn: (path: (string | number)[], origin: import("../../../../../../../../Users/foldleft/Dev/expect-more/packages/expect-more-jest/node_modules/expect-more/dist/typings").Collection) => any;
export declare const getIn: (path: (string | number)[], origin: import("expect-more/dist/typings").Collection) => any;
{
"name": "expect-more-jest",
"description": "Write Beautiful Specs with Custom Matchers",
"version": "2.0.0",
"version": "2.1.0",
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",

@@ -12,4 +12,4 @@ "bugs": "https://github.com/JamieMason/expect-more/issues",

"chalk": "2.4.1",
"expect-more": "0.5.0",
"jest-matcher-utils": "23.0.1"
"expect-more": "0.5.1",
"jest-matcher-utils": "23.5.0"
},

@@ -16,0 +16,0 @@ "files": [

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