@@ -18,7 +18,7 @@ describe('Integration tests', () => {
1818 const { pkgPath } = await isolatePackage ( packagePath )
1919
2020 // Test that we can import the package
21- const { PackageURL } = await import ( `${ pkgPath } /dist/package-url .js` )
21+ const { PackageURL } = await import ( `${ pkgPath } /dist/index .js` )
2222 expect ( PackageURL ) . toBeDefined ( )
2323 expect ( typeof PackageURL ) . toBe ( 'function' )
2424
@@ -46,8 +46,7 @@ describe('Integration tests', () => {
4646 it ( 'should load UrlConverter and work correctly' , async ( ) => {
4747 const { pkgPath } = await isolatePackage ( packagePath )
4848
49- const { UrlConverter } = await import ( `${ pkgPath } /dist/url-converter.js` )
50- const { PackageURL } = await import ( `${ pkgPath } /dist/package-url.js` )
49+ const { PackageURL, UrlConverter } = await import ( `${ pkgPath } /dist/index.js` )
5150
5251 expect ( UrlConverter ) . toBeDefined ( )
5352 expect ( typeof UrlConverter . toRepositoryUrl ) . toBe ( 'function' )
@@ -64,9 +63,7 @@ describe('Integration tests', () => {
6463 it ( 'should have all entry points working together' , async ( ) => {
6564 const { pkgPath } = await isolatePackage ( packagePath )
6665
67- const { PackageURL } = await import ( `${ pkgPath } /dist/package-url.js` )
68- const { PackageURLBuilder } = await import ( `${ pkgPath } /dist/index.js` )
69- const { UrlConverter } = await import ( `${ pkgPath } /dist/url-converter.js` )
66+ const { PackageURL, PackageURLBuilder, UrlConverter } = await import ( `${ pkgPath } /dist/index.js` )
7067
7168 // Build a purl
7269 const purl = PackageURLBuilder . create ( )
0 commit comments