0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/packages/markdown/remark/test/browser.test.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
469 B
JavaScript
Raw Normal View History

import esbuild from 'esbuild';
import { expect } from 'chai';
describe('Bundle for browsers', async () => {
it('esbuild browser build should work', async () => {
const result = await esbuild.build({
platform: 'browser',
entryPoints: ['@astrojs/markdown-remark'],
bundle: true,
write: false,
});
// If some non-browser-safe stuff sneaks in, esbuild should error before reaching here
expect(result.outputFiles.length).to.be.greaterThan(0);
});
});