Skip to content

Commit f04c745

Browse files
committed
Clarify test helper organization guidance
1 parent f0ec3ff commit f04c745

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/extension/skills/elixir/dev/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Use Elixir/OTP stdlib directly from `elixir_eval` for ordinary runtime, file, an
2121

2222
After non-trivial Elixir edits, do not stop at tests. Run `CodeMap.reflect(changed: true)` before the final answer when Reach is available. Apply one small behavior-preserving cleanup if the evidence supports it; otherwise explicitly state why no further refactor is warranted.
2323

24+
Before adding or moving ExUnit support code, inspect the project's existing test support organization (`test/support`, `test_helpers`, case templates, drivers, assertions, fakes, fixtures, and `test/test_helper.exs`). Preserve the project's chosen grouping and naming conventions instead of introducing ad hoc flat helper files or parallel helper hierarchies. Prefer extending existing case/driver/assertion/fake/helper modules when they already cover the responsibility. Keep helper file paths, module names, and responsibilities aligned according to the project's convention. When adding tests, make ExUnit module names follow the project's established source/test path hierarchy and naming style.
25+
2426
Read the focused guidance files as needed:
2527

2628
- `operating-style.md` — Elixir-specific source reading, scope, correctness, context tracking, and PR hygiene.

packages/extension/skills/elixir/webdev/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Use this skill for Phoenix/LiveView frontend work in existing projects. Keep eva
99

1010
Use `elixir_eval` to verify UI/runtime claims before final answers: browser console logs, replay recordings, render output, icon names, Tailwind extraction, and SFC compilation.
1111

12+
Before adding browser/LiveView test helpers, inspect the project's existing test support organization and reuse its established case/driver/assertion/helper conventions. Do not create ad hoc flat helper files or a second browser/transport abstraction when the project already has one. Keep helper responsibilities, file paths, and module names aligned with the project's own structure.
13+
1214
Read the focused guidance files as needed:
1315

1416
- `feedback-loops.md` — browser console logs, replay records, render-without-browser checks.

0 commit comments

Comments
 (0)