test: type-check Drive test sources
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- build-system, testing, tooling
Research direction
Start with packages/drive/tsconfig.json and the existing scripts, then inspect the reported errors in test/driver/index.test.ts, test/tool/producer.test.ts, test/instance/proxy.test.ts, test/tool/controller.test.ts, and test/fixtures/**. Add the diagnostic test configuration and script, resolve the file-scoped type errors, and confirm production and test checks pass without changing runtime assertions.
Written by the indexing model from the issue text.
Description
Problem
packages/drive/tsconfig.json checks src, examples, compile fixtures, and manual probes, but excludes ordinary test/**/*.test.ts and test/fixtures/**. Vitest strips types, so test API drift can stay invisible until a line happens to fail at runtime.
A diagnostic config including the full test tree currently reports roughly 50 errors. Examples include stale Effect APIs, unchecked indexed access, scope requirements, overly broad error unions, and fixture contract drift.
Proposed sequence
- Add
tsconfig.test.jsonand atypecheck:testscript, but keep it out of required CI initially. - Fix errors in small file-scoped commits, starting with:
test/driver/index.test.tstest/tool/producer.test.tstest/instance/proxy.test.tstest/tool/controller.test.tstest/fixtures/**
- Add
typecheck:testtocheckonce the diagnostic config is clean.
Done when
- Production and test TypeScript checks both pass.
- Script fixtures are covered, since
start --scriptcompiles them as user programs. - Runtime test behavior and assertions remain unchanged.
- Dominant language
- TypeScript
- Stars
- 32
- Forks
- 4
- Avg merge
- 11m
- Merged PRs (30d)
- 14
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anomalyco/opencode-drive
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
anomalyco/opencode-drive#102 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 50/100
anomalyco/opencode-drive#103 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 3/5 1-2 days Newbie friendliness 68/100
anomalyco/opencode-drive#86 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 52/100
anomalyco/opencode-drive#85 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 62/100
anomalyco/opencode-drive#82 ·
Maintainers usually reply within 1 day
All issues in anomalyco/opencode-drive
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mermaid-js/mermaid-live-editor#2053 ·
Maintainers usually reply within 1 day
-
factory
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jessepollak/home#1455 ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
lingdojo/kana-dojo#31227 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
appandflow/stim#1838 ·
Maintainers usually reply within 1 day