mirror of
https://github.com/hanzoai/jest.git
synced 2026-09-24 16:59:57 +00:00
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
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",
|
|
}
|
|
`;
|