test(config-audit): add marketplace-small/medium/large scanner fixtures

This commit is contained in:
Kjell Tore Guttormsen 2026-04-19 22:36:33 +02:00
commit 5a4f29fd14
14 changed files with 222 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# Shared Test Patterns
- One fixture per scenario under `tests/fixtures/{name}/`
- `describe(...)` + `it(...)` from `node:test`
- Co-locate tests with their implementation as `*.test.mjs`
- Prefer table-driven tests for permutations
- Reset module-level state in `beforeEach` to keep tests isolated
- Use `execFile` for CLI subprocess tests
- Avoid mocks for I/O at fixture boundaries — read real files instead