@types/jest
Advanced tools
Comparing version 19.2.3 to 19.2.4
@@ -155,2 +155,40 @@ // Type definitions for Jest 19.2.0 | ||
interface SnapshotSerializerOptions { | ||
callToJSON?: boolean; | ||
edgeSpacing?: string; | ||
spacing?: string; | ||
escapeRegex?: boolean; | ||
highlight?: boolean; | ||
indent?: number; | ||
maxDepth?: number; | ||
min?: boolean; | ||
plugins?: Array<SnapshotSerializerPlugin> | ||
printFunctionName?: boolean; | ||
theme?: SnapshotSerializerOptionsTheme; | ||
// see https://github.com/facebook/jest/blob/e56103cf142d2e87542ddfb6bd892bcee262c0e6/types/PrettyFormat.js | ||
} | ||
interface SnapshotSerializerOptionsTheme { | ||
comment?: string; | ||
content?: string; | ||
prop?: string; | ||
tag?: string; | ||
value?: string; | ||
} | ||
interface SnapshotSerializerColor { | ||
close: string; | ||
open: string; | ||
} | ||
interface SnapshotSerializerColors { | ||
comment: SnapshotSerializerColor; | ||
content: SnapshotSerializerColor; | ||
prop: SnapshotSerializerColor; | ||
tag: SnapshotSerializerColor; | ||
value: SnapshotSerializerColor; | ||
} | ||
interface SnapshotSerializerPlugin { | ||
print(val:any, serialize:((val:any) => string), indent:((str:string) => string), opts:SnapshotSerializerOptions, colors: SnapshotSerializerColors) : string; | ||
test(val:any) : boolean; | ||
} | ||
/** The `expect` function is used every time you want to test a value. You will rarely call `expect` by itself. */ | ||
@@ -173,2 +211,4 @@ interface Expect { | ||
extend(obj: ExpectExtendMap): void; | ||
/** Adds a module to format application-specific data structures for serialization. */ | ||
addSnapshotSerializer(serializer: SnapshotSerializerPlugin) : void; | ||
/** Matches any object that recursively matches the provided keys. This is often handy in conjunction with other asymmetric matchers. */ | ||
@@ -175,0 +215,0 @@ objectContaining(obj: {}): any; |
{ | ||
"name": "@types/jest", | ||
"version": "19.2.3", | ||
"version": "19.2.4", | ||
"description": "TypeScript definitions for Jest", | ||
@@ -36,4 +36,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "bc85e2db1bdfa51e8da0daa41235b85e8e7ced0a6cf142817056bd4d6e939b56", | ||
"typesPublisherContentHash": "bb8abf46f42b0b1b4cfcbd584c7dcdf201d9643f76f9454fcc34d3b0515cc763", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 04 May 2017 19:16:13 GMT | ||
* Last updated: Fri, 02 Jun 2017 01:33:57 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: afterAll, afterEach, beforeAll, beforeEach, describe, expect, fail, fdescribe, fit, it, jasmine, jest, pending, spyOn, test, xdescribe, xit, xtest |
25797
419