Why
We rely on masking to ensure secrets never get written to disk. There are currently no tests for src/core/masker.js.
Scope
Add a Jest test file that covers key redaction + value-pattern redaction.
Where
src/core/masker.js
- Add:
tests/core/masker.test.js
Acceptance Criteria
- Tests cover redacting keys like
token, password, secret, authorization, api_key
- Tests cover redacting JWT-like values and credit-card-like values
- Tests cover nested objects + arrays
npm test passes
Notes
Current implementation mutates the input object; tests should reflect current behavior unless you decide to change it (then update callers accordingly).
Why
We rely on masking to ensure secrets never get written to disk. There are currently no tests for
src/core/masker.js.Scope
Add a Jest test file that covers key redaction + value-pattern redaction.
Where
src/core/masker.jstests/core/masker.test.jsAcceptance Criteria
token,password,secret,authorization,api_keynpm testpassesNotes
Current implementation mutates the input object; tests should reflect current behavior unless you decide to change it (then update callers accordingly).