diff --git a/test/build/style-spec.test.ts b/test/build/style-spec.test.ts index 0731d37b..a69f71b7 100644 --- a/test/build/style-spec.test.ts +++ b/test/build/style-spec.test.ts @@ -1,5 +1,6 @@ import {readdir} from 'fs/promises'; import {latest} from '../../src/reference/latest'; +import {latest as latestInBundle} from '../../dist/index'; import fs from 'fs'; const minBundle = fs.readFileSync('dist/index.mjs', 'utf8'); @@ -37,4 +38,8 @@ describe('@maplibre/maplibre-gl-style-spec npm package', () => { expect(latest.$root.version.doc).toBeTruthy(); expect(minBundle.includes(latest.$root.version.doc)).toBeFalsy(); }); + + test('"latest" entry point should be defined', async () => { + expect(latestInBundle).toBeDefined(); + }); });