Skip to content

Commit da2caf5

Browse files
Merge pull request #177 from contentstack/fix/esm-js-extension-issue
fix: update esm export path to include .js extension
2 parents 265ca7d + e1bd29a commit da2caf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/esm-exports.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('ESM Exports Tests', () => {
2828

2929
it('should re-export getData from ESM index.js', () => {
3030
const indexContent = fs.readFileSync(esmIndexPath, 'utf-8');
31-
expect(indexContent).toContain("export * from './lib/request'");
31+
expect(indexContent).toContain("export * from './lib/request.js'");
3232
});
3333

3434
it('should verify getData is a named export in ESM build', () => {

0 commit comments

Comments
 (0)