Files
2026-05-09 23:50:24 +02:00

16 lines
642 B
Markdown

# Tests
This directory is organized as follows:
- `tests/unit/`: fast unit tests with mocks
- `tests/integration/`: optional integration tests that may require `pykeepass` and a Python environment
- `tests/fixtures/`: bundled KeePass databases and matching JSON credentials/content files
## Conventions
- Use `*.test.ts` filenames.
- Keep unit tests isolated and fast.
- Prefer mocking the Python bridge in unit tests.
- Put environment-dependent checks in `tests/integration/`.
- Keep fixture-driven expectations aligned with the matching `*.kdbx.json` file.
- Integration tests should skip or self-report when prerequisites are missing.