From 7b2bf89d0550d9ea256719ee20e76d6012093438 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sun, 17 Nov 2024 12:21:16 +0100 Subject: [PATCH] add build test of 'latest' --- test/build/style-spec.test.ts | 5 +++++ 1 file changed, 5 insertions(+) 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(); + }); });