Skip to content

Commit 7c590fe

Browse files
authored
add build test of 'latest' (#908)
1 parent ff3a1ae commit 7c590fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/build/style-spec.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {readdir} from 'fs/promises';
22
import {latest} from '../../src/reference/latest';
3+
import {latest as latestInBundle} from '../../dist/index';
34
import fs from 'fs';
45
import {describe, test, expect} from 'vitest';
56
const minBundle = fs.readFileSync('dist/index.mjs', 'utf8');
@@ -37,4 +38,8 @@ describe('@maplibre/maplibre-gl-style-spec npm package', () => {
3738
expect(latest.$root.version.doc).toBeTruthy();
3839
expect(minBundle.includes(latest.$root.version.doc)).toBeFalsy();
3940
});
41+
42+
test('"latest" entry point should be defined', async () => {
43+
expect(latestInBundle).toBeDefined();
44+
});
4045
});

0 commit comments

Comments
 (0)