Volt.Test.Lines (Volt v0.15.5)

Copy Markdown View Source

Extracts source line numbers for JavaScript test declarations.

Runtime collection owns JS semantics such as nested describe names and hooks. This module adds source locations with OXC so generated ExUnit tests can point at useful file lines without hand-parsing JavaScript.

Summary

Functions

test_lines(source, filename)

@spec test_lines(String.t(), String.t()) :: {:ok, [pos_integer()]} | {:error, term()}