@types/chai-jest-snapshot
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -1,7 +0,1 @@ | ||
// Type definitions for chai-jest-snapshot 1.3 | ||
// Project: https://github.com/suchipi/chai-jest-snapshot#readme | ||
// Definitions by: Matt Perry <https://github.com/mattvperry> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 3.0 | ||
/// <reference types="chai" /> | ||
@@ -8,0 +2,0 @@ /// <reference types="mocha" /> |
{ | ||
"name": "@types/chai-jest-snapshot", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "TypeScript definitions for chai-jest-snapshot", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-jest-snapshot", | ||
"license": "MIT", | ||
@@ -9,4 +10,4 @@ "contributors": [ | ||
"name": "Matt Perry", | ||
"url": "https://github.com/mattvperry", | ||
"githubUsername": "mattvperry" | ||
"githubUsername": "mattvperry", | ||
"url": "https://github.com/mattvperry" | ||
} | ||
@@ -26,4 +27,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "30880e31624ead33bab67124b38d863d07bf3b0fb18b586fe4e35f3e2a4615bc", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "80a507625454bb5c5d703e5f46446314db410b81cba4d88768ee4ebd91427aeb", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,46 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-jest-snapshot. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-jest-snapshot/index.d.ts) | ||
````ts | ||
/// <reference types="chai" /> | ||
/// <reference types="mocha" /> | ||
declare global { | ||
namespace Chai { | ||
interface Assertion { | ||
/** Assert that the object matches the snapshot */ | ||
matchSnapshot(snapshotFilename?: string, snapshotName?: string, update?: boolean): Assertion; | ||
matchSnapshot(update: boolean): Assertion; | ||
} | ||
} | ||
} | ||
interface ChaiJestSnapshot extends Chai.ChaiPlugin { | ||
/** Set snapshot file name */ | ||
setFilename(filename: string): void; | ||
/** | ||
* Set snapshot test name | ||
*/ | ||
setTestName(testname: string): void; | ||
/** Configure snapshot name using mocha context */ | ||
configureUsingMochaContext(context: Mocha.Context): void; | ||
/** Reset snapshot registry */ | ||
resetSnapshotRegistry(): void; | ||
/** Add a serializer plugin */ | ||
addSerializer(serializer: any): void; | ||
} | ||
declare var ChaiJestSnapshot: ChaiJestSnapshot; | ||
export = ChaiJestSnapshot; | ||
```` | ||
### Additional Details | ||
* Last updated: Sun, 12 Jul 2020 08:28:43 GMT | ||
* Last updated: Tue, 17 Oct 2023 22:10:14 GMT | ||
* Dependencies: [@types/chai](https://npmjs.com/package/@types/chai), [@types/mocha](https://npmjs.com/package/@types/mocha) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [Matt Perry](https://github.com/mattvperry). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4659
0
54
27