77} from '@launchdarkly/js-sdk-common' ;
88import { createBasicPlatform , createLogger } from '@launchdarkly/private-js-mocks' ;
99
10- import Configuration from '../../src/configuration' ;
10+ import { Configuration , ConfigurationImpl } from '../../src/configuration' ;
1111import {
1212 addApplicationInfo ,
1313 addAutoEnv ,
@@ -31,7 +31,7 @@ describe('automatic environment attributes', () => {
3131 beforeEach ( ( ) => {
3232 ( { crypto, info } = mockPlatform ) ;
3333 ( crypto . randomUUID as jest . Mock ) . mockResolvedValue ( 'test-device-key-1' ) ;
34- config = new Configuration ( { logger } ) ;
34+ config = new ConfigurationImpl ( { logger } ) ;
3535 } ) ;
3636
3737 afterEach ( ( ) => {
@@ -338,7 +338,7 @@ describe('automatic environment attributes', () => {
338338
339339 describe ( 'addApplicationInfo' , ( ) => {
340340 test ( 'add id, version, name, versionName' , async ( ) => {
341- config = new Configuration ( {
341+ config = new ConfigurationImpl ( {
342342 applicationInfo : {
343343 id : 'com.from-config.ld' ,
344344 version : '2.2.2' ,
@@ -431,7 +431,7 @@ describe('automatic environment attributes', () => {
431431 info . platformData = jest
432432 . fn ( )
433433 . mockReturnValueOnce ( { ld_application : { version : null , locale : '' } } ) ;
434- config = new Configuration ( { applicationInfo : { version : '1.2.3' } } ) ;
434+ config = new ConfigurationImpl ( { applicationInfo : { version : '1.2.3' } } ) ;
435435 const ldApplication = await addApplicationInfo ( mockPlatform , config ) ;
436436
437437 expect ( ldApplication ) . toBeUndefined ( ) ;
0 commit comments