expect-more-jest
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -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 @@ |
@@ -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 |
159264
168
128
+ Added@jest/types@24.9.0(transitive)
+ Added@types/istanbul-lib-coverage@2.0.6(transitive)
+ Added@types/istanbul-lib-report@3.0.3(transitive)
+ Added@types/istanbul-reports@1.1.2(transitive)
+ Added@types/yargs@13.0.12(transitive)
+ Added@types/yargs-parser@21.0.3(transitive)
+ Addedansi-regex@4.1.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addeddiff-sequences@24.9.0(transitive)
+ Addedjest-diff@24.9.0(transitive)
+ Addedjest-get-type@24.9.0(transitive)
+ Addedjest-matcher-utils@24.0.0(transitive)
+ Addedpretty-format@24.9.0(transitive)
+ Addedreact-is@16.13.1(transitive)
- Removedansi-regex@3.0.1(transitive)
- Removedchalk@2.4.1(transitive)
- Removedjest-get-type@22.4.3(transitive)
- Removedjest-matcher-utils@23.5.0(transitive)
- Removedpretty-format@23.6.0(transitive)
Updatedchalk@2.4.2
Updatedjest-matcher-utils@24.0.0