Skip to content

chore(test): run all test suites, not just test/*.test.ts#72

Open
stealthwhizz wants to merge 1 commit into
open-gitagent:mainfrom
stealthwhizz:chore/test-glob-all
Open

chore(test): run all test suites, not just test/*.test.ts#72
stealthwhizz wants to merge 1 commit into
open-gitagent:mainfrom
stealthwhizz:chore/test-glob-all

Conversation

@stealthwhizz

Copy link
Copy Markdown
Collaborator

Problem

The test script globbed only test/*.test.ts:

"test": "node --test test/*.test.ts --experimental-strip-types"

So the suites under src/**/__tests__/ (memory, sandbox-memory, skill-learner, task-tracker) and src/__tests__/telemetry.test.ts were never executed by npm test or CI — silently non-running tests.

What I checked first

Ran those orphaned files directly. They're currently it.todo(...) placeholder stubs with no bodies, so they report as TODO markers, not failures. That means flipping the glob is safe today (CI stays green) and, more importantly, any real tests added under those paths from now on will actually run instead of being silently ignored.

Fix

"test": "node --test --experimental-strip-types \"test/**/*.test.ts\" \"src/**/__tests__/*.test.ts\""

Recursive globs covering both locations.

Result

npm test now discovers every suite:

ℹ tests 45
ℹ pass 27
ℹ fail 0
ℹ todo 18

27 real tests pass, 18 TODO stubs surface as TODO (not failures), 0 failures.

Follow-up flagged from #71; kept as its own one-line change.

The test script globbed only test/*.test.ts, so suites under src/**/__tests__/
(memory, sandbox-memory, skill-learner, task-tracker) and src/__tests__/ were
never executed by `npm test`. Those files are currently it.todo() stubs, so
they surface as TODO markers rather than failures — but wiring them in means
any real tests added there from now on actually run in CI.

Switch to recursive globs covering both locations. Suite: 27 pass, 18 todo, 0 fail.
Copilot AI review requested due to automatic review settings July 6, 2026 20:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants