Repository navigation
ci: typecheck tests and install with npm ci - #6
Merged
Asdivyansh merged 1 commit intoOct 31, 2026
Merged
Conversation
Tests were never typechecked because tsconfig.json excludes tests/, so 24 type errors had accumulated, including fixtures missing fields that SiloConfigSchema now requires. Add tsconfig.test.json and make `npm run typecheck` check it too, fix the errors (fixture fields take their schema defaults), and switch CI to `npm ci` with the setup-node npm cache. Fixes SilosLabs#5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5
What
tsconfig.test.json(new): extendstsconfig.json, addstests/**andvitest.config.ts, and setsnoEmit.npm run typechecknow runstsc --noEmit && tsc -p tsconfig.test.json. CONTRIBUTING.md,prepublishOnlyand CI all calltypecheck, so tests are checked everywhere without a new command.SiloConfigSchemarequires (proxy.autoOpenLogs,sandbox.image,integrations), using their schema defaults, so test behaviour doesn't change.(f, i)filter callbacks renamed to(_, i).onboard.test.ts: theinquirer.promptmock now usesvi.mocked(...), matchingtests/proxy/server.test.ts, instead of an unsafe cast.npm install→npm ci, pluscache: npmonactions/setup-node.Testing
npm ci && npm run typecheck: exit 0 (source and tests).npm test: 23 files, 339 tests pass.npm run build: succeeds.ProxyConfigfixture missingautoOpenLogsmakesnpm run typecheckfail with TS2741, and removing it makes typecheck pass again.