Skip to content
Snippets Groups Projects
Unverified Commit 1b029ae5 authored by Alex Yang's avatar Alex Yang Committed by GitHub
Browse files

test: add cjs smoke test (#1660)

parent d1db2189
No related branches found
No related tags found
No related merge requests found
......@@ -96,3 +96,10 @@ test('no extra deps in "@llamaindex/env" cjs module', async () => {
assert.ok(!file.includes(module));
}
});
test('no error when require "llamaindex" in CJS', async () => {
const code = `require('llamaindex')`;
execSync(`${process.argv[0]} -e "${code}"`, {
cwd: process.cwd(),
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment