Summary
Running npx vitest run tests/parsers/erlang.test.ts shows 12 failures, e.g.:
FAIL tests/parsers/erlang.test.ts > Erlang parser > records -include_lib with kind "include_lib" so consumers resolve against OTP paths
AssertionError: expected undefined to be defined
Context
Discovered during the deps-audit security remediation (removing the malicious `tree-sitter-erlang` devDep). The WASM file, extractor, and test code are untouched — these failures are pre-existing.
Investigation needed
- Check whether the WASM was rebuilt from a grammar version that changed node kinds/field names
- Compare expected AST shapes in the failing tests against what the committed
grammars/tree-sitter-erlang.wasm actually produces
- Either fix the extractor in
src/domain/parser.ts or regenerate the WASM from a compatible source
Summary
Running
npx vitest run tests/parsers/erlang.test.tsshows 12 failures, e.g.:Context
Discovered during the deps-audit security remediation (removing the malicious `tree-sitter-erlang` devDep). The WASM file, extractor, and test code are untouched — these failures are pre-existing.
Investigation needed
grammars/tree-sitter-erlang.wasmactually producessrc/domain/parser.tsor regenerate the WASM from a compatible source