openpencil/tests/engine/tools
Danila Poyarkov a1339e845b refactor(tools): use acorn AST parser for eval wrapping
Replace hand-rolled regex heuristic with proper acorn JS parsing.
The AST correctly identifies ExpressionStatement as the last node
regardless of trailing semicolons, comments, or complex syntax.

Fixes edge cases like '42;' which the regex wrongly treated as a
statement.

Co-authored-by: stiff <v.stiff@gmail.com>
Co-authored-by: Jais Pedersen <jais@pedersens.net>
2026-05-11 12:15:38 +03:00
..
ai-adapter.test.ts chore(tests): narrow no-empty-function exceptions 2026-05-06 12:32:54 +03:00
cli.test.ts chore(lint): fix unused test code 2026-05-06 02:53:19 +03:00
create.test.ts chore(tests): remove easy non-null assertions 2026-05-06 02:59:56 +03:00
eval-wrap.test.ts refactor(tools): use acorn AST parser for eval wrapping 2026-05-11 12:15:38 +03:00
modify.test.ts chore(tests): guard modify tool assertions 2026-05-06 11:20:49 +03:00
read.test.ts chore(lint): enforce type imports in tests 2026-05-06 02:35:57 +03:00
registry.test.ts chore(lint): fix unused test code 2026-05-06 02:53:19 +03:00
structure.test.ts chore(tests): remove targeted non-null assertions 2026-05-06 03:13:58 +03:00