@@ -28,6 +28,7 @@ describe("telemetry", () => {
2828 isDryRun : false ,
2929 pluginName : "test-plugin" ,
3030 pluginVersion : "1.0.0" ,
31+ bundler : "test-bundler" ,
3132 } ) ;
3233
3334 expect ( sentryClient ) . toBeDefined ( ) ;
@@ -40,6 +41,7 @@ describe("telemetry", () => {
4041 isDryRun : false ,
4142 pluginName : "test-plugin" ,
4243 pluginVersion : "1.0.0" ,
44+ bundler : "test-bundler" ,
4345 } ) ;
4446
4547 expect ( sentryClient ) . toBeDefined ( ) ;
@@ -64,7 +66,13 @@ describe("telemetry", () => {
6466 version : "1.0.0" ,
6567 } ;
6668
67- setTelemetryDataOnScope ( options , pluginInfo , scope ) ;
69+ setTelemetryDataOnScope (
70+ options ,
71+ pluginInfo ,
72+ scope ,
73+ "test-bundler" ,
74+ "none" ,
75+ ) ;
6876
6977 // eslint-disable-next-line @typescript-eslint/unbound-method
7078 expect ( scope . setTag ) . toHaveBeenCalledWith ( "auth_mode" , "token" ) ;
@@ -74,6 +82,10 @@ describe("telemetry", () => {
7482 expect ( scope . setTag ) . toHaveBeenCalledWith ( "plugin.name" , "test-plugin" ) ;
7583 // eslint-disable-next-line @typescript-eslint/unbound-method
7684 expect ( scope . setTag ) . toHaveBeenCalledWith ( "plugin.version" , "1.0.0" ) ;
85+ // eslint-disable-next-line @typescript-eslint/unbound-method
86+ expect ( scope . setTag ) . toHaveBeenCalledWith ( "bundler" , "test-bundler" ) ;
87+ // eslint-disable-next-line @typescript-eslint/unbound-method
88+ expect ( scope . setTag ) . toHaveBeenCalledWith ( "meta_framework" , "none" ) ;
7789 } ) ;
7890
7991 it ( "sets correct tags for github OIDC auth" , ( ) => {
@@ -91,7 +103,13 @@ describe("telemetry", () => {
91103 version : "1.0.0" ,
92104 } ;
93105
94- setTelemetryDataOnScope ( options , pluginInfo , scope ) ;
106+ setTelemetryDataOnScope (
107+ options ,
108+ pluginInfo ,
109+ scope ,
110+ "test-bundler" ,
111+ "none" ,
112+ ) ;
95113
96114 // eslint-disable-next-line @typescript-eslint/unbound-method
97115 expect ( scope . setTag ) . toHaveBeenCalledWith ( "auth_mode" , "github-oidc" ) ;
0 commit comments