@casual-simulation/expect 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/index.d.ts +6 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/package.json +35 -0
- package/src/asymmetricMatchers.d.ts +67 -0
- package/src/asymmetricMatchers.js +188 -0
- package/src/asymmetricMatchers.js.map +1 -0
- package/src/diff/cleanupSemantic.d.ts +58 -0
- package/src/diff/cleanupSemantic.js +526 -0
- package/src/diff/cleanupSemantic.js.map +1 -0
- package/src/diff/constants.d.ts +9 -0
- package/src/diff/constants.js +10 -0
- package/src/diff/constants.js.map +1 -0
- package/src/diff/diffLines.d.ts +13 -0
- package/src/diff/diffLines.js +138 -0
- package/src/diff/diffLines.js.map +1 -0
- package/src/diff/diffStrings.d.ts +10 -0
- package/src/diff/diffStrings.js +36 -0
- package/src/diff/diffStrings.js.map +1 -0
- package/src/diff/getAlignedDiffs.d.ts +11 -0
- package/src/diff/getAlignedDiffs.js +187 -0
- package/src/diff/getAlignedDiffs.js.map +1 -0
- package/src/diff/index.d.ts +16 -0
- package/src/diff/index.js +139 -0
- package/src/diff/index.js.map +1 -0
- package/src/diff/joinAlignedDiffs.d.ts +11 -0
- package/src/diff/joinAlignedDiffs.js +191 -0
- package/src/diff/joinAlignedDiffs.js.map +1 -0
- package/src/diff/normalizeDiffOptions.d.ts +10 -0
- package/src/diff/normalizeDiffOptions.js +40 -0
- package/src/diff/normalizeDiffOptions.js.map +1 -0
- package/src/diff/printDiffs.d.ts +11 -0
- package/src/diff/printDiffs.js +46 -0
- package/src/diff/printDiffs.js.map +1 -0
- package/src/diff/types.d.ts +49 -0
- package/src/diff/types.js +2 -0
- package/src/diff/types.js.map +1 -0
- package/src/diff-sequences/index.d.ts +19 -0
- package/src/diff-sequences/index.js +506 -0
- package/src/diff-sequences/index.js.map +1 -0
- package/src/extractExpectedAssertionsErrors.d.ts +11 -0
- package/src/extractExpectedAssertionsErrors.js +58 -0
- package/src/extractExpectedAssertionsErrors.js.map +1 -0
- package/src/get-type/index.d.ts +11 -0
- package/src/get-type/index.js +57 -0
- package/src/get-type/index.js.map +1 -0
- package/src/index.d.ts +16 -0
- package/src/index.js +247 -0
- package/src/index.js.map +1 -0
- package/src/jasmineUtils.d.ts +9 -0
- package/src/jasmineUtils.js +218 -0
- package/src/jasmineUtils.js.map +1 -0
- package/src/jestMatchersObject.d.ts +14 -0
- package/src/jestMatchersObject.js +78 -0
- package/src/jestMatchersObject.js.map +1 -0
- package/src/matcher-utils/Replaceable.d.ts +18 -0
- package/src/matcher-utils/Replaceable.js +57 -0
- package/src/matcher-utils/Replaceable.js.map +1 -0
- package/src/matcher-utils/deepCyclicCopyReplaceable.d.ts +8 -0
- package/src/matcher-utils/deepCyclicCopyReplaceable.js +96 -0
- package/src/matcher-utils/deepCyclicCopyReplaceable.js.map +1 -0
- package/src/matcher-utils/index.d.ts +53 -0
- package/src/matcher-utils/index.js +341 -0
- package/src/matcher-utils/index.js.map +1 -0
- package/src/matchers.d.ts +11 -0
- package/src/matchers.js +575 -0
- package/src/matchers.js.map +1 -0
- package/src/message-util/index.d.ts +11 -0
- package/src/message-util/index.js +34 -0
- package/src/message-util/index.js.map +1 -0
- package/src/pretty-format/collections.d.ts +33 -0
- package/src/pretty-format/collections.js +130 -0
- package/src/pretty-format/collections.js.map +1 -0
- package/src/pretty-format/index.d.ts +25 -0
- package/src/pretty-format/index.js +390 -0
- package/src/pretty-format/index.js.map +1 -0
- package/src/pretty-format/plugins/AsymmetricMatcher.d.ts +12 -0
- package/src/pretty-format/plugins/AsymmetricMatcher.js +53 -0
- package/src/pretty-format/plugins/AsymmetricMatcher.js.map +1 -0
- package/src/pretty-format/plugins/ConvertAnsi.d.ts +12 -0
- package/src/pretty-format/plugins/ConvertAnsi.js +58 -0
- package/src/pretty-format/plugins/ConvertAnsi.js.map +1 -0
- package/src/pretty-format/plugins/DOMCollection.d.ts +12 -0
- package/src/pretty-format/plugins/DOMCollection.js +39 -0
- package/src/pretty-format/plugins/DOMCollection.js.map +1 -0
- package/src/pretty-format/plugins/DOMElement.d.ts +12 -0
- package/src/pretty-format/plugins/DOMElement.js +68 -0
- package/src/pretty-format/plugins/DOMElement.js.map +1 -0
- package/src/pretty-format/plugins/Immutable.d.ts +12 -0
- package/src/pretty-format/plugins/Immutable.js +113 -0
- package/src/pretty-format/plugins/Immutable.js.map +1 -0
- package/src/pretty-format/plugins/ReactTestComponent.d.ts +19 -0
- package/src/pretty-format/plugins/ReactTestComponent.js +29 -0
- package/src/pretty-format/plugins/ReactTestComponent.js.map +1 -0
- package/src/pretty-format/plugins/lib/escapeHTML.d.ts +8 -0
- package/src/pretty-format/plugins/lib/escapeHTML.js +10 -0
- package/src/pretty-format/plugins/lib/escapeHTML.js.map +1 -0
- package/src/pretty-format/plugins/lib/markup.d.ts +14 -0
- package/src/pretty-format/plugins/lib/markup.js +98 -0
- package/src/pretty-format/plugins/lib/markup.js.map +1 -0
- package/src/pretty-format/types.d.ts +109 -0
- package/src/pretty-format/types.js +8 -0
- package/src/pretty-format/types.js.map +1 -0
- package/src/print.d.ts +16 -0
- package/src/print.js +71 -0
- package/src/print.js.map +1 -0
- package/src/spyMatchers.d.ts +10 -0
- package/src/spyMatchers.js +766 -0
- package/src/spyMatchers.js.map +1 -0
- package/src/test-utils/ConditionalTest.d.ts +10 -0
- package/src/test-utils/ConditionalTest.js +25 -0
- package/src/test-utils/ConditionalTest.js.map +1 -0
- package/src/test-utils/alignedAnsiStyleSerializer.d.ts +9 -0
- package/src/test-utils/alignedAnsiStyleSerializer.js +46 -0
- package/src/test-utils/alignedAnsiStyleSerializer.js.map +1 -0
- package/src/test-utils/config.d.ts +10 -0
- package/src/test-utils/config.js +143 -0
- package/src/test-utils/config.js.map +1 -0
- package/src/test-utils/index.d.ts +10 -0
- package/src/test-utils/index.js +10 -0
- package/src/test-utils/index.js.map +1 -0
- package/src/toThrowMatchers.d.ts +12 -0
- package/src/toThrowMatchers.js +258 -0
- package/src/toThrowMatchers.js.map +1 -0
- package/src/types.d.ts +327 -0
- package/src/types.js +9 -0
- package/src/types.js.map +1 -0
- package/src/utils.d.ts +26 -0
- package/src/utils.js +303 -0
- package/src/utils.js.map +1 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export declare type Colors = {
|
|
8
|
+
comment: {
|
|
9
|
+
close: string;
|
|
10
|
+
open: string;
|
|
11
|
+
};
|
|
12
|
+
content: {
|
|
13
|
+
close: string;
|
|
14
|
+
open: string;
|
|
15
|
+
};
|
|
16
|
+
prop: {
|
|
17
|
+
close: string;
|
|
18
|
+
open: string;
|
|
19
|
+
};
|
|
20
|
+
tag: {
|
|
21
|
+
close: string;
|
|
22
|
+
open: string;
|
|
23
|
+
};
|
|
24
|
+
value: {
|
|
25
|
+
close: string;
|
|
26
|
+
open: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
declare type Indent = (arg0: string) => string;
|
|
30
|
+
export declare type Refs = Array<unknown>;
|
|
31
|
+
declare type Print = (arg0: unknown) => string;
|
|
32
|
+
export declare type Theme = {
|
|
33
|
+
comment: string;
|
|
34
|
+
content: string;
|
|
35
|
+
prop: string;
|
|
36
|
+
tag: string;
|
|
37
|
+
value: string;
|
|
38
|
+
};
|
|
39
|
+
declare type ThemeReceived = {
|
|
40
|
+
comment?: string;
|
|
41
|
+
content?: string;
|
|
42
|
+
prop?: string;
|
|
43
|
+
tag?: string;
|
|
44
|
+
value?: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type CompareKeys = ((a: string, b: string) => number) | undefined;
|
|
47
|
+
export declare type Options = {
|
|
48
|
+
callToJSON: boolean;
|
|
49
|
+
compareKeys: CompareKeys;
|
|
50
|
+
escapeRegex: boolean;
|
|
51
|
+
escapeString: boolean;
|
|
52
|
+
highlight: boolean;
|
|
53
|
+
indent: number;
|
|
54
|
+
maxDepth: number;
|
|
55
|
+
min: boolean;
|
|
56
|
+
plugins: Plugins;
|
|
57
|
+
printBasicPrototype: boolean;
|
|
58
|
+
printFunctionName: boolean;
|
|
59
|
+
theme: Theme;
|
|
60
|
+
};
|
|
61
|
+
export interface PrettyFormatOptions {
|
|
62
|
+
callToJSON?: boolean;
|
|
63
|
+
compareKeys?: CompareKeys;
|
|
64
|
+
escapeRegex?: boolean;
|
|
65
|
+
escapeString?: boolean;
|
|
66
|
+
highlight?: boolean;
|
|
67
|
+
indent?: number;
|
|
68
|
+
maxDepth?: number;
|
|
69
|
+
min?: boolean;
|
|
70
|
+
plugins?: Plugins;
|
|
71
|
+
printBasicPrototype?: boolean;
|
|
72
|
+
printFunctionName?: boolean;
|
|
73
|
+
theme?: ThemeReceived;
|
|
74
|
+
}
|
|
75
|
+
export declare type OptionsReceived = PrettyFormatOptions;
|
|
76
|
+
export declare type Config = {
|
|
77
|
+
callToJSON: boolean;
|
|
78
|
+
compareKeys: CompareKeys;
|
|
79
|
+
colors: Colors;
|
|
80
|
+
escapeRegex: boolean;
|
|
81
|
+
escapeString: boolean;
|
|
82
|
+
indent: string;
|
|
83
|
+
maxDepth: number;
|
|
84
|
+
min: boolean;
|
|
85
|
+
plugins: Plugins;
|
|
86
|
+
printBasicPrototype: boolean;
|
|
87
|
+
printFunctionName: boolean;
|
|
88
|
+
spacingInner: string;
|
|
89
|
+
spacingOuter: string;
|
|
90
|
+
};
|
|
91
|
+
export declare type Printer = (val: unknown, config: Config, indentation: string, depth: number, refs: Refs, hasCalledToJSON?: boolean) => string;
|
|
92
|
+
declare type Test = (arg0: any) => boolean;
|
|
93
|
+
export declare type NewPlugin = {
|
|
94
|
+
serialize: (val: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string;
|
|
95
|
+
test: Test;
|
|
96
|
+
};
|
|
97
|
+
declare type PluginOptions = {
|
|
98
|
+
edgeSpacing: string;
|
|
99
|
+
min: boolean;
|
|
100
|
+
spacing: string;
|
|
101
|
+
};
|
|
102
|
+
export declare type OldPlugin = {
|
|
103
|
+
print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string;
|
|
104
|
+
test: Test;
|
|
105
|
+
};
|
|
106
|
+
export declare type Plugin = NewPlugin | OldPlugin;
|
|
107
|
+
export declare type Plugins = Array<Plugin>;
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
package/src/print.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare const printReceivedStringContainExpectedSubstring: (received: string, start: number, length: number) => string;
|
|
9
|
+
export declare const printReceivedStringContainExpectedResult: (received: string, result: RegExpExecArray | null) => string;
|
|
10
|
+
export declare const printReceivedArrayContainExpectedItem: (received: Array<unknown>, index: number) => string;
|
|
11
|
+
export declare const printCloseTo: (receivedDiff: number, expectedDiff: number, precision: number, isNot: boolean) => string;
|
|
12
|
+
export declare const printExpectedConstructorName: (label: string, expected: Function) => string;
|
|
13
|
+
export declare const printExpectedConstructorNameNot: (label: string, expected: Function) => string;
|
|
14
|
+
export declare const printReceivedConstructorName: (label: string, received: Function) => string;
|
|
15
|
+
export declare const printReceivedConstructorNameNot: (label: string, received: Function, expected: Function) => string;
|
|
16
|
+
//# sourceMappingURL=print.d.ts.map
|
package/src/print.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
/* eslint-disable local/ban-types-eventually */
|
|
9
|
+
import { EXPECTED_COLOR, INVERTED_COLOR, RECEIVED_COLOR, printReceived, stringify, } from './matcher-utils';
|
|
10
|
+
// Format substring but do not enclose in double quote marks.
|
|
11
|
+
// The replacement is compatible with pretty-format package.
|
|
12
|
+
const printSubstring = (val) => val.replace(/"|\\/g, '\\$&');
|
|
13
|
+
export const printReceivedStringContainExpectedSubstring = (received, start, length // not end
|
|
14
|
+
) => RECEIVED_COLOR('"' +
|
|
15
|
+
printSubstring(received.slice(0, start)) +
|
|
16
|
+
INVERTED_COLOR(printSubstring(received.slice(start, start + length))) +
|
|
17
|
+
printSubstring(received.slice(start + length)) +
|
|
18
|
+
'"');
|
|
19
|
+
export const printReceivedStringContainExpectedResult = (received, result) => result === null
|
|
20
|
+
? printReceived(received)
|
|
21
|
+
: printReceivedStringContainExpectedSubstring(received, result.index, result[0].length);
|
|
22
|
+
// The serialized array is compatible with pretty-format package min option.
|
|
23
|
+
// However, items have default stringify depth (instead of depth - 1)
|
|
24
|
+
// so expected item looks consistent by itself and enclosed in the array.
|
|
25
|
+
export const printReceivedArrayContainExpectedItem = (received, index) => RECEIVED_COLOR('[' +
|
|
26
|
+
received
|
|
27
|
+
.map((item, i) => {
|
|
28
|
+
const stringified = stringify(item);
|
|
29
|
+
return i === index
|
|
30
|
+
? INVERTED_COLOR(stringified)
|
|
31
|
+
: stringified;
|
|
32
|
+
})
|
|
33
|
+
.join(', ') +
|
|
34
|
+
']');
|
|
35
|
+
export const printCloseTo = (receivedDiff, expectedDiff, precision, isNot) => {
|
|
36
|
+
const receivedDiffString = stringify(receivedDiff);
|
|
37
|
+
const expectedDiffString = receivedDiffString.includes('e')
|
|
38
|
+
? // toExponential arg is number of digits after the decimal point.
|
|
39
|
+
expectedDiff.toExponential(0)
|
|
40
|
+
: 0 <= precision && precision < 20
|
|
41
|
+
? // toFixed arg is number of digits after the decimal point.
|
|
42
|
+
// It may be a value between 0 and 20 inclusive.
|
|
43
|
+
// Implementations may optionally support a larger range of values.
|
|
44
|
+
expectedDiff.toFixed(precision + 1)
|
|
45
|
+
: stringify(expectedDiff);
|
|
46
|
+
return (`Expected precision: ${isNot ? ' ' : ''} ${stringify(precision)}\n` +
|
|
47
|
+
`Expected difference: ${isNot ? 'not ' : ''}< ${EXPECTED_COLOR(expectedDiffString)}\n` +
|
|
48
|
+
`Received difference: ${isNot ? ' ' : ''} ${RECEIVED_COLOR(receivedDiffString)}`);
|
|
49
|
+
};
|
|
50
|
+
export const printExpectedConstructorName = (label, expected) => printConstructorName(label, expected, false, true) + '\n';
|
|
51
|
+
export const printExpectedConstructorNameNot = (label, expected) => printConstructorName(label, expected, true, true) + '\n';
|
|
52
|
+
export const printReceivedConstructorName = (label, received) => printConstructorName(label, received, false, false) + '\n';
|
|
53
|
+
// Do not call function if received is equal to expected.
|
|
54
|
+
export const printReceivedConstructorNameNot = (label, received, expected) => typeof expected.name === 'string' &&
|
|
55
|
+
expected.name.length !== 0 &&
|
|
56
|
+
typeof received.name === 'string' &&
|
|
57
|
+
received.name.length !== 0
|
|
58
|
+
? printConstructorName(label, received, true, false) +
|
|
59
|
+
` ${Object.getPrototypeOf(received) === expected
|
|
60
|
+
? 'extends'
|
|
61
|
+
: 'extends … extends'} ${EXPECTED_COLOR(expected.name)}` +
|
|
62
|
+
'\n'
|
|
63
|
+
: printConstructorName(label, received, false, false) + '\n';
|
|
64
|
+
const printConstructorName = (label, constructor, isNot, isExpected) => typeof constructor.name !== 'string'
|
|
65
|
+
? `${label} name is not a string`
|
|
66
|
+
: constructor.name.length === 0
|
|
67
|
+
? `${label} name is an empty string`
|
|
68
|
+
: `${label}: ${!isNot ? '' : isExpected ? 'not ' : ' '}${isExpected
|
|
69
|
+
? EXPECTED_COLOR(constructor.name)
|
|
70
|
+
: RECEIVED_COLOR(constructor.name)}`;
|
|
71
|
+
//# sourceMappingURL=print.js.map
|
package/src/print.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.js","sourceRoot":"","sources":["print.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,+CAA+C;AAE/C,OAAO,EACH,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,SAAS,GACZ,MAAM,iBAAiB,CAAC;AAEzB,6DAA6D;AAC7D,4DAA4D;AAC5D,MAAM,cAAc,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,2CAA2C,GAAG,CACvD,QAAgB,EAChB,KAAa,EACb,MAAc,CAAC,UAAU;EACnB,EAAE,CACR,cAAc,CACV,GAAG;IACC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,cAAc,CACV,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC,CAAC,CACxD;IACD,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC;IAC9C,GAAG,CACV,CAAC;AAEN,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACpD,QAAgB,EAChB,MAA8B,EACxB,EAAE,CACR,MAAM,KAAK,IAAI;IACX,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC;IACzB,CAAC,CAAC,2CAA2C,CACvC,QAAQ,EACR,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CACnB,CAAC;AAEZ,4EAA4E;AAC5E,qEAAqE;AACrE,yEAAyE;A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b,EAAE,CACR,OAAO,WAAW,CAAC,IAAI,KAAK,QAAQ;IAChC,CAAC,CAAC,GAAG,KAAK,uBAAuB;IACjC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC;QAC/B,CAAC,CAAC,GAAG,KAAK,0BAA0B;QACpC,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GACnD,UAAU;YACN,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC;YAClC,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CACzC,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type { MatchersObject } from './types';
|
|
8
|
+
declare const spyMatchers: MatchersObject;
|
|
9
|
+
export default spyMatchers;
|
|
10
|
+
//# sourceMappingURL=spyMatchers.d.ts.map
|