@@ -111,7 +111,7 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
111111 `${ mongodbVersion } Enterprise :: ${ context } ` ,
112112 ( integration ) => {
113113 function oidcIt ( name : string , cb : Parameters < OidcIt > [ 1 ] ) : void {
114- /* eslint-disable @ vitest/expect-expect */
114+ /* eslint-disable vitest/expect-expect */
115115 it ( name , { timeout : DEFAULT_TIMEOUT } , async ( context ) => {
116116 context . skip (
117117 await isCommunityServer ( integration ) ,
@@ -124,7 +124,7 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
124124
125125 await cb ?.( context , integration ) ;
126126 } ) ;
127- /* eslint-disable @ vitest/expect-expect */
127+ /* eslint-enable vitest/expect-expect */
128128 }
129129
130130 beforeEach ( async ( ) => {
@@ -154,8 +154,6 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
154154 }
155155
156156 const baseTestMatrix = [
157- { version : "7.0.22" , nonce : false } ,
158- { version : "7.0.22" , nonce : true } ,
159157 { version : "8.0.12" , nonce : false } ,
160158 { version : "8.0.12" , nonce : true } ,
161159 ] as const ;
@@ -169,12 +167,16 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
169167 signal
170168 ) ;
171169
172- const status : {
170+ type ConnectionStatus = {
173171 authInfo : {
174172 authenticatedUsers : { user : string ; db : string } [ ] ;
175173 authenticatedUserRoles : { role : string ; db : string } [ ] ;
176174 } ;
177- } = ( await state . serviceProvider . runCommand ( "admin" , { connectionStatus : 1 } ) ) as any ;
175+ } ;
176+
177+ const status : ConnectionStatus = ( await state . serviceProvider . runCommand ( "admin" , {
178+ connectionStatus : 1 ,
179+ } ) ) as unknown as ConnectionStatus ;
178180
179181 expect ( status . authInfo . authenticatedUsers [ 0 ] ) . toEqual ( { user : "dev/testuser" , db : "$external" } ) ;
180182 expect ( status . authInfo . authenticatedUserRoles [ 0 ] ) . toEqual ( {
0 commit comments