forked from jestjs/jest
/
snapshotSerializers.test.ts.snap
58 lines (57 loc) 路 1.11 KB
/
snapshotSerializers.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Snapshot serializers renders snapshot 1`] = `
Object {
"snapshot serializers works with array of strings in property matcher 1": "
{
"arrayOfStrings": [
"stream",
],
}
",
"snapshot serializers works with default serializers 1": "
<div
id="foo"
/>
",
"snapshot serializers works with expect.XXX within array in property matcher 1": "
{
"arrayOfStrings": [
Any<String>,
],
}
",
"snapshot serializers works with first plugin 1": "foo - 1",
"snapshot serializers works with nested serializable objects 1": "foo - bar - 2",
"snapshot serializers works with prepended plugins and default serializers 1": "
<div
aProp={
{
"a": 6,
}
}
bProp={foo - 8}
/>
",
"snapshot serializers works with prepended plugins from expect method called once 1": "
<div
aProp={
{
"a": 6,
}
}
bProp={Foo: 8}
/>
",
"snapshot serializers works with prepended plugins from expect method called twice 1": "
<div
aProp={
{
"a": 6,
}
}
bProp={FOO: 8}
/>
",
"snapshot serializers works with second plugin 1": "bar - 2",
}
`;