Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/chai-jest-snapshot

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/chai-jest-snapshot - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

6

chai-jest-snapshot/index.d.ts

@@ -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" />

11

chai-jest-snapshot/package.json
{
"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).
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