You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/babel-plugin-component-annotate/test/__snapshots__/test-plugin.test.ts.snap
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,22 @@ export default function TestComponent() {
20
20
}"
21
21
`;
22
22
23
+
exports[`Fragment Detection handles Fragment aliased correctly when used by other non-Fragment components in a different scope 1`] =`
24
+
"import {FragmentasOriginalF} from 'react';
25
+
import {OtherComponent} from 'some-library';
26
+
function TestComponent() {
27
+
constF=OriginalF;
28
+
29
+
// Use Fragment alias - should be ignored
30
+
return/*#__PURE__*/React.createElement(F, null, /*#__PURE__*/React.createElement(\\"div\\", null, \\"This should NOT have data-sentry-element (Fragment)\\"));
31
+
}
32
+
function AnotherComponent() {
33
+
// Different component with same alias name in different function scope
34
+
constF=OtherComponent;
35
+
return/*#__PURE__*/React.createElement(F, null, /*#__PURE__*/React.createElement(\\"div\\", null, \\"This SHOULD have data-sentry-element (not Fragment)\\"));
@@ -168,22 +184,6 @@ export default function TestComponent() {
168
184
}"
169
185
`;
170
186
171
-
exports[`Fragment Performance Benchmarks handles Fragment aliased correctly when used by other non-Fragment components in a different scope 1`] =`
172
-
"import {FragmentasOriginalF} from 'react';
173
-
import {OtherComponent} from 'some-library';
174
-
function TestComponent() {
175
-
constF=OriginalF;
176
-
177
-
// Use Fragment alias - should be ignored
178
-
return/*#__PURE__*/React.createElement(F, null, /*#__PURE__*/React.createElement(\\"div\\", null, \\"This should NOT have data-sentry-element (Fragment)\\"));
179
-
}
180
-
function AnotherComponent() {
181
-
// Different component with same alias name in different function scope
182
-
constF=OtherComponent;
183
-
return/*#__PURE__*/React.createElement(F, null, /*#__PURE__*/React.createElement(\\"div\\", null, \\"This SHOULD have data-sentry-element (not Fragment)\\"));
0 commit comments