Skip to content

fix: restore ESM test execution and cover proxy tests in CI - #26

Open
1aifanatic wants to merge 1 commit into
scaledown-team:mainfrom
1aifanatic:fix/ci-offline-coverage
Open

1aifanatic wants to merge 1 commit into
scaledown-team:mainfrom
1aifanatic:fix/ci-offline-coverage

Conversation

@1aifanatic

Copy link
Copy Markdown

CI enables ESM, but client/config/hook suites still use unavailable globals, and the unit filename allowlist skips all 23 proxy tests. Use the ESM runtime in every npm test script, import Jest and file-path helpers explicitly, and select offline unit/proxy suites by excluding the dedicated integration/config/live suites. Import the proxy server only after its temporary home is set so stats writes stay isolated.

Fixes #24.

Validation: npm run build; 115 offline tests pass, including MCP and config validation. Live-provider tests were not run. The existing Node 18/20/22 unit jobs now discover proxy tests and future offline unit suites automatically.

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.

Run offline proxy tests in CI and fix ESM test execution

1 participant