mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 22:02:54 +00:00
test-audit-agent: daily run failed (validation)
- Identified missing `jsdom` dependency causing `npm run test:unit` to fail. - Identified missing `stylelint` executable causing `npm run lint` to fail. - Created `torch/src/context/test-audit-context.md` with findings. - Updated `KNOWN_ISSUES.md`. - Wrote failure log `torch/task-logs/daily/2026-02-26T22-00-00Z__test-audit-agent__failed.md`. - Generated `test-audit/flakiness-matrix.json` and `test-audit/suspicious-tests.json` (partial/aborted). Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
cb1a0fec00
commit
ed07860fbf
12 files changed
+613
-24
No files matched your search
@@ -1,12 +1,20 @@
|
||||
# Test Audit Context
|
||||
|
||||
**Goal:** Ensure test suite reliability and identify potential flakiness or bad practices.
|
||||
## 2026-02-26: Missing JSDOM Dependency
|
||||
|
||||
**Scope:**
|
||||
- Audit all tests in `test/` directory.
|
||||
- Check for non-deterministic behavior (flakiness).
|
||||
- Check for "cheat vectors" like `setTimeout`.
|
||||
The `test-audit-agent` identified that the `jsdom` dependency is missing from the project root `node_modules`, causing failures in multiple unit tests that rely on it (e.g., `tests/app/channel-profile-moderation.test.mjs`).
|
||||
|
||||
**Constraints:**
|
||||
- Must use provided audit tools.
|
||||
- Must report findings to `reports/test-audit/`.
|
||||
This was detected during the daily audit run where `npm run test:unit` failed with `ERR_MODULE_NOT_FOUND`.
|
||||
|
||||
### Affected Files
|
||||
Multiple test files import `jsdom` directly or via helpers. See `grep` output in task logs for full list.
|
||||
|
||||
### Action Taken
|
||||
- Identified the missing dependency.
|
||||
- Tests cannot be audited for flakiness reliably until they can run.
|
||||
- Added this note to context.
|
||||
- Will create a "Known Issue" entry.
|
||||
|
||||
### Next Steps
|
||||
- The `deps-security-agent` or a developer needs to install `jsdom` as a dev dependency.
|
||||
- `npm install --save-dev jsdom`
|
||||
Reference in new issue
Block a user