Skip to content

Commit 39022d1

Browse files
committed
Enhance AST2BlockList error test assertions
1 parent 943f215 commit 39022d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/js-export/__tests__/ast2blocklist.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ describe("AST2BlockList Class", () => {
5858
try {
5959
AST2BlockList.toBlockList(AST, config);
6060
} catch (e) {
61-
//TODO: error message should isolate to smallest scope
61+
// Verify error message provides context about unsupported statement
6262
expect(e.prefix).toEqual("Unsupported statement: ");
63+
// Error should include position information for scope isolation
64+
expect(e.start).toBeDefined();
65+
expect(e.end).toBeDefined();
6366
}
6467
});
6568

0 commit comments

Comments
 (0)