test.js.snap 5.03 KB
Newer Older
Jeff Avallone's avatar
Jeff Avallone committed
1 2 3 4 5
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`SentryError rendering 1`] = `
ShallowWrapper {
  Symbol(enzyme.__root__): [Circular],
6
  Symbol(enzyme.__unrendered__): <SentryError
7 8
    t={[Function]}
  />,
Jeff Avallone's avatar
Jeff Avallone committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22
  Symbol(enzyme.__renderer__): Object {
    "batchedUpdates": [Function],
    "getNode": [Function],
    "render": [Function],
    "simulateError": [Function],
    "simulateEvent": [Function],
    "unmount": [Function],
  },
  Symbol(enzyme.__node__): Object {
    "instance": null,
    "key": undefined,
    "nodeType": "function",
    "props": Object {
      "children": <p>
23 24
        <WithMergedOptions(TransComponent)>
          This error has been logged. You may also 
Jeff Avallone's avatar
Jeff Avallone committed
25 26 27 28 29
          <a
            href="#error-report"
            onClick={[Function]}
          >
            fill out a report
30 31 32 33 34 35
          </a>
          .
        </WithMergedOptions(TransComponent)>
      </p>,
      "heading": "TRANSLATE(An error has occurred)",
      "type": "error",
Jeff Avallone's avatar
Jeff Avallone committed
36
    },
37 38
    "ref": null,
    "rendered": Object {
Jeff Avallone's avatar
Jeff Avallone committed
39 40
      "instance": null,
      "key": undefined,
41
      "nodeType": "host",
Jeff Avallone's avatar
Jeff Avallone committed
42
      "props": Object {
43
        "children": <WithMergedOptions(TransComponent)>
Jeff Avallone's avatar
Jeff Avallone committed
44 45 46 47 48 49 50 51
          This error has been logged. You may also 
          <a
            href="#error-report"
            onClick={[Function]}
          >
            fill out a report
          </a>
          .
52
        </WithMergedOptions(TransComponent)>,
Jeff Avallone's avatar
Jeff Avallone committed
53 54 55 56 57
      },
      "ref": null,
      "rendered": Object {
        "instance": null,
        "key": undefined,
58
        "nodeType": "class",
Jeff Avallone's avatar
Jeff Avallone committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
        "props": Object {
          "children": Array [
            "This error has been logged. You may also ",
            <a
              href="#error-report"
              onClick={[Function]}
            >
              fill out a report
            </a>,
            ".",
          ],
        },
        "ref": null,
        "rendered": Array [
          "This error has been logged. You may also ",
          Object {
            "instance": null,
            "key": undefined,
            "nodeType": "host",
            "props": Object {
              "children": "fill out a report",
              "href": "#error-report",
              "onClick": [Function],
            },
            "ref": null,
            "rendered": "fill out a report",
            "type": "a",
          },
          ".",
        ],
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
        "type": [Function],
      },
      "type": "p",
    },
    "type": [Function],
  },
  Symbol(enzyme.__nodes__): Array [
    Object {
      "instance": null,
      "key": undefined,
      "nodeType": "function",
      "props": Object {
        "children": <p>
          <WithMergedOptions(TransComponent)>
            This error has been logged. You may also 
            <a
              href="#error-report"
              onClick={[Function]}
            >
              fill out a report
            </a>
            .
          </WithMergedOptions(TransComponent)>
        </p>,
        "heading": "TRANSLATE(An error has occurred)",
        "type": "error",
      },
      "ref": null,
      "rendered": Object {
        "instance": null,
        "key": undefined,
        "nodeType": "host",
        "props": Object {
          "children": <WithMergedOptions(TransComponent)>
            This error has been logged. You may also 
            <a
              href="#error-report"
              onClick={[Function]}
            >
              fill out a report
            </a>
            .
          </WithMergedOptions(TransComponent)>,
        },
        "ref": null,
        "rendered": Object {
          "instance": null,
          "key": undefined,
          "nodeType": "class",
          "props": Object {
            "children": Array [
              "This error has been logged. You may also ",
              <a
                href="#error-report"
                onClick={[Function]}
              >
                fill out a report
              </a>,
              ".",
            ],
          },
          "ref": null,
          "rendered": Array [
            "This error has been logged. You may also ",
            Object {
              "instance": null,
              "key": undefined,
              "nodeType": "host",
              "props": Object {
                "children": "fill out a report",
                "href": "#error-report",
                "onClick": [Function],
              },
              "ref": null,
              "rendered": "fill out a report",
              "type": "a",
            },
            ".",
          ],
          "type": [Function],
        },
Jeff Avallone's avatar
Jeff Avallone committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
        "type": "p",
      },
      "type": [Function],
    },
  ],
  Symbol(enzyme.__options__): Object {
    "adapter": ReactSixteenAdapter {
      "options": Object {
        "enableComponentDidUpdateOnSetState": true,
        "lifecycles": Object {
          "componentDidUpdate": Object {
            "onSetState": true,
          },
          "getDerivedStateFromProps": true,
          "getSnapshotBeforeUpdate": true,
          "setState": Object {
            "skipsComponentDidUpdateOnNullish": true,
          },
        },
      },
    },
  },
}
`;