@@ -114,7 +114,7 @@ describe('Vue Tracing Mixins', () => {
114
114
} ) ;
115
115
116
116
describe ( 'Root Component Behavior' , ( ) => {
117
- it ( 'should always create a span for the Vue root component regardless of tracking options' , ( ) => {
117
+ it ( 'should always create a root component span for the Vue root component regardless of tracking options' , ( ) => {
118
118
const mixins = createTracingMixins ( { trackComponents : false } ) ;
119
119
120
120
mixins . beforeMount . call ( mockRootInstance ) ;
@@ -127,8 +127,8 @@ describe('Vue Tracing Mixins', () => {
127
127
) ;
128
128
} ) ;
129
129
130
- it ( 'should finish root span on timer after component spans end' , ( ) => {
131
- // todo/fixme: This root span is only finished if trackComponents is true --> it should probably be always finished
130
+ it ( 'should finish root component span on timer after component spans end' , ( ) => {
131
+ // todo/fixme: This root component span is only finished if trackComponents is true --> it should probably be always finished
132
132
const mixins = createTracingMixins ( { trackComponents : true , timeout : 1000 } ) ;
133
133
const rootMockSpan = mockSpanFactory ( ) ;
134
134
mockRootInstance . $_sentryRootSpan = rootMockSpan ;
@@ -137,10 +137,10 @@ describe('Vue Tracing Mixins', () => {
137
137
mixins . beforeMount . call ( mockVueInstance ) ;
138
138
mixins . mounted . call ( mockVueInstance ) ;
139
139
140
- // Root span should not end immediately
140
+ // Root component span should not end immediately
141
141
expect ( rootMockSpan . end ) . not . toHaveBeenCalled ( ) ;
142
142
143
- // After timeout, root span should end
143
+ // After timeout, root component span should end
144
144
vi . advanceTimersByTime ( 1001 ) ;
145
145
expect ( rootMockSpan . end ) . toHaveBeenCalled ( ) ;
146
146
} ) ;
@@ -192,7 +192,7 @@ describe('Vue Tracing Mixins', () => {
192
192
expect ( ( ) => mixins . mounted . call ( mockVueInstance ) ) . not . toThrow ( ) ;
193
193
} ) ;
194
194
195
- it ( 'should skip spans when no active root span (transaction) exists' , ( ) => {
195
+ it ( 'should skip spans when no active root component span (transaction) exists' , ( ) => {
196
196
const mixins = createTracingMixins ( { trackComponents : true } ) ;
197
197
198
198
// Remove active spans
0 commit comments