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.4.0 to 2.4.1

LICENSE

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

## [2.4.1](https://github.com/JamieMason/expect-more/compare/expect-more-jest@2.4.0...expect-more-jest@2.4.1) (2019-02-02)
### Bug Fixes
* **npm:** update dependencies ([44fe454](https://github.com/JamieMason/expect-more/commit/44fe454))
* **typings:** correct typings for toBeWithinRange ([99038a8](https://github.com/JamieMason/expect-more/commit/99038a8)), closes [#22](https://github.com/JamieMason/expect-more/issues/22) [#23](https://github.com/JamieMason/expect-more/issues/23)
# [2.4.0](https://github.com/JamieMason/expect-more/compare/expect-more-jest@2.3.0...expect-more-jest@2.4.0) (2019-01-12)

@@ -8,0 +20,0 @@

4

dist/to-be-within-range.d.ts

@@ -16,3 +16,3 @@ declare global {

*/
toBeWithinRange<T>(other: Date): Matchers<T>;
toBeWithinRange<T>(floor: number, ceiling: number): Matchers<T>;
}

@@ -28,3 +28,3 @@ interface Matchers<R> {

*/
toBeWithinRange(other: Date): R;
toBeWithinRange(floor: number, ceiling: number): R;
}

@@ -31,0 +31,0 @@ }

{
"name": "expect-more-jest",
"description": "Write Beautiful Specs with Custom Matchers",
"version": "2.4.0",
"version": "2.4.1",
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",

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

"dependencies": {
"chalk": "2.4.1",
"chalk": "2.4.2",
"expect-more": "0.5.4",
"jest-matcher-utils": "23.5.0"
"jest-matcher-utils": "24.0.0"
},

@@ -27,3 +27,4 @@ "files": [

},
"typings": "./dist/index.d.ts"
"typings": "./dist/index.d.ts",
"gitHead": "4d24e4fc26671d36f604a75578b8f94da1cd84d9"
}

@@ -31,6 +31,4 @@ # expect-more-jest

The simplest way to integrate is to set the [`setupTestFrameworkScriptFile`][setup-test-framework-script-file] value of
Jest's [jest.config.js][jest-config] to `require.resolve('expect-more-jest')`. If your project requires more setup than
just registering these matchers, include `require('expect-more-jest');` or `import 'expect-more-jest';` somewhere in the
file you have pointed your `setupTestFrameworkScriptFile` at.
The simplest way to integrate is to set the [`setupFilesAfterEnv`][setup-files-after-env] array of Jest's
[jest.config.js][jest-config] to include `require.resolve('expect-more-jest')`.

@@ -82,3 +80,3 @@ Note: If your Editor does not recognise that you are using custom matchers, add a `global.d.ts` file at the root of your

expect(value).toBeWholeNumber();
expect(value).toBeWithinRange(other: Date);
expect(value).toBeWithinRange(floor: number, ceiling: number);
expect(value).toEndWith(other: string);

@@ -129,4 +127,4 @@ expect(value).toHandleMissingBranches();

[jest-config]: https://facebook.github.io/jest/docs/en/configuration.html
[jest]: http://facebook.github.io/jest
[setup-test-framework-script-file]: https://facebook.github.io/jest/docs/en/configuration.html
[jest-config]: https://jestjs.io/docs/en/configuration
[jest]: https://jestjs.io
[setup-files-after-env]: https://jestjs.io/docs/en/configuration#setupfilesafterenv-array
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