|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`test a basic react component 1`] = `"<Basic />"`; |
| 4 | + |
| 5 | +exports[`test a basic react component with default props 1`] = `"<DefaultProp test='abc' />"`; |
| 6 | + |
| 7 | +exports[`test a basic react component with key props 1`] = `"<DefaultProp key='abc' />"`; |
| 8 | + |
| 9 | +exports[`test a complex react component with boolean props and shortBooleanSyntax on 1`] = ` |
| 10 | +"<Basic test='abc' |
| 11 | + test2={4} |
| 12 | + test4 |
| 13 | + test5={{\\"abc\\": \\"abc\\"}} |
| 14 | + test6='' |
| 15 | + test7={false} |
| 16 | + test8> |
| 17 | + <BasicChild test1 |
| 18 | + test2={false} |
| 19 | + test3={5} |
| 20 | + test4={6}> |
| 21 | + Title 1 |
| 22 | + </BasicChild> |
| 23 | +</Basic>" |
| 24 | +`; |
| 25 | + |
| 26 | +exports[`test a react component with a null children 1`] = ` |
| 27 | +"<Basic> |
| 28 | + <BasicChild> |
| 29 | + <BasicChild> |
| 30 | + <BasicChild> |
| 31 | + Title 2 |
| 32 | + </BasicChild> |
| 33 | + </BasicChild> |
| 34 | + </BasicChild> |
| 35 | +</Basic>" |
| 36 | +`; |
| 37 | + |
| 38 | +exports[`test a react component with basic props 1`] = ` |
| 39 | +"<Basic test='abc' |
| 40 | + test2={4} |
| 41 | + test4={true} |
| 42 | + test5={{\\"abc\\": \\"abc\\"}} |
| 43 | + test6='' />" |
| 44 | +`; |
| 45 | + |
| 46 | +exports[`test a react component with custom displayName 1`] = `"<CustomDisplayName />"`; |
| 47 | + |
| 48 | +exports[`test a react component with custom name function 1`] = ` |
| 49 | +"<Basic test1={_testCallBack1} |
| 50 | + test2={_testCallBack2} />" |
| 51 | +`; |
| 52 | + |
| 53 | +exports[`test a react component with dynamic keyValueOverride 1`] = `"<Basic test1={testCallback} />"`; |
| 54 | + |
| 55 | +exports[`test a react component with dynamic keyValueOverride 2`] = `"<Basic test1={_thisIsNotAFunction} />"`; |
| 56 | + |
| 57 | +exports[`test a react component with function code enabled 1`] = ` |
| 58 | +"<Basic test1={function _testCallBack1() { |
| 59 | + //no-op |
| 60 | + }} />" |
| 61 | +`; |
| 62 | + |
| 63 | +exports[`test a react component with function name enabled 1`] = `"<Basic test1={_testCallBack1} />"`; |
| 64 | + |
| 65 | +exports[`test a react component with function props 1`] = `"<Basic test1={...} />"`; |
| 66 | + |
| 67 | +exports[`test a react component with ignore props 1`] = ` |
| 68 | +"<Basic> |
| 69 | + Test |
| 70 | +</Basic>" |
| 71 | +`; |
| 72 | + |
| 73 | +exports[`test a react component with immutable prop 1`] = `"<Basic prop={{\\"test\\": \\"abc\\"}} />"`; |
| 74 | + |
| 75 | +exports[`test a react component with multiple children 1`] = ` |
| 76 | +"<Basic> |
| 77 | + <BasicChild> |
| 78 | + <BasicChild> |
| 79 | + <BasicChild> |
| 80 | + Title |
| 81 | + </BasicChild> |
| 82 | + <BasicChild> |
| 83 | + Title 2 |
| 84 | + </BasicChild> |
| 85 | + </BasicChild> |
| 86 | + </BasicChild> |
| 87 | +</Basic>" |
| 88 | +`; |
| 89 | + |
| 90 | +exports[`test a react component with multiple children and immutable props 1`] = ` |
| 91 | +"<Basic> |
| 92 | + <BasicChild> |
| 93 | + <BasicChild props={{\\"test\\": \\"abc\\"}}> |
| 94 | + <BasicChild> |
| 95 | + Title |
| 96 | + </BasicChild> |
| 97 | + <BasicChild> |
| 98 | + Title 2 |
| 99 | + </BasicChild> |
| 100 | + </BasicChild> |
| 101 | + </BasicChild> |
| 102 | +</Basic>" |
| 103 | +`; |
| 104 | + |
| 105 | +exports[`test a react component with multiple ignore tags 1`] = ` |
| 106 | +"<Basic> |
| 107 | + <p> |
| 108 | + Test |
| 109 | + </p> |
| 110 | +</Basic>" |
| 111 | +`; |
| 112 | + |
| 113 | +exports[`test a react component with null prop 1`] = ` |
| 114 | +<Basic |
| 115 | + prop={null} |
| 116 | +/> |
| 117 | +`; |
| 118 | + |
| 119 | +exports[`test a react component with react children 1`] = ` |
| 120 | +"<Basic> |
| 121 | + <BasicChild /> |
| 122 | +</Basic>" |
| 123 | +`; |
| 124 | + |
| 125 | +exports[`test a react component with react props 1`] = `"<Basic test1={<Basic />} />"`; |
| 126 | + |
| 127 | +exports[`test a react component with spread operator 1`] = ` |
| 128 | +"<Basic prop1={true} |
| 129 | + prop2='active' />" |
| 130 | +`; |
| 131 | + |
| 132 | +exports[`test a react component with text children 1`] = ` |
| 133 | +"<Basic> |
| 134 | + Test |
| 135 | +</Basic>" |
| 136 | +`; |
| 137 | + |
| 138 | +exports[`test a react component with undefined prop 1`] = ` |
| 139 | +<Basic |
| 140 | + prop={undefined} |
| 141 | +/> |
| 142 | +`; |
| 143 | + |
| 144 | +exports[`test a react single component with ignore tags 1`] = ` |
| 145 | +"<div> |
| 146 | + <span> |
| 147 | + test |
| 148 | + </span> |
| 149 | +</div>" |
| 150 | +`; |
| 151 | + |
| 152 | +exports[`test a simple react component with boolean props and shortBooleanSyntax on 1`] = ` |
| 153 | +"<Basic test |
| 154 | + test2={false} |
| 155 | + test3 />" |
| 156 | +`; |
| 157 | + |
| 158 | +exports[`test nested components with text in between 1`] = ` |
| 159 | +"<div> |
| 160 | + one |
| 161 | + <div> |
| 162 | + two |
| 163 | + <span> |
| 164 | + three |
| 165 | + </span> |
| 166 | + </div> |
| 167 | +</div>" |
| 168 | +`; |
0 commit comments