Skip to content

Typecheck test files without adding test libraries#22

Merged
onlywei merged 1 commit intomainfrom
claude/resolve-issue-21-U7HKp
Jan 22, 2026
Merged

Typecheck test files without adding test libraries#22
onlywei merged 1 commit intomainfrom
claude/resolve-issue-21-U7HKp

Conversation

@onlywei
Copy link
Owner

@onlywei onlywei commented Jan 21, 2026

The test files were not being type-checked because tsconfig.json only included src/**/*.ts. This meant invalid properties on Pipeline objects would silently pass through to YAML output.

Add tsconfig.test.json that extends the base config but includes test files, and update the test script to run tsc before node --test. This ensures TypeScript's excess property checking catches invalid keys.

Fixes #21

The test files were not being type-checked because tsconfig.json only
included src/**/*.ts. This meant invalid properties on Pipeline objects
would silently pass through to YAML output.

Add tsconfig.test.json that extends the base config but includes test
files, and update the test script to run tsc before node --test. This
ensures TypeScript's excess property checking catches invalid keys.

Fixes #21
@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2026

⚠️ No Changeset found

Latest commit: a902704

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@onlywei onlywei merged commit e274f8a into main Jan 22, 2026
2 checks passed
@onlywei onlywei deleted the claude/resolve-issue-21-U7HKp branch January 22, 2026 01:03
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.

Tests do not enforce the Pipeline interface contract; invalid keys are serialised into YAML

2 participants