Skip to content

Comments

convert tests to TypeScript (with claude)#672

Merged
bakkot merged 4 commits intomainfrom
no-mocha
Feb 18, 2026
Merged

convert tests to TypeScript (with claude)#672
bakkot merged 4 commits intomainfrom
no-mocha

Conversation

@bakkot
Copy link
Member

@bakkot bakkot commented Jan 29, 2026

Claude did this but I reviewed and it looks fine. Couple places that use as unknown as whatever casts that I'd do // @ts-expect-error but nothing wrong with being more verbose. Commits can be reviewed individually. Fixes #667.

Also removes Mocha because node's built-in runner is fine, and bumps minimum node version to 24 because I don't want to bother having to compile the test files. This makes it a breaking change. We should probably start publishing as ESM while we're at it, just to simplify the build process, but that can be a followup.

@@ -0,0 +1,33 @@
import assert from 'assert';
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you didn't git mv here before changing it, so git lost the history. Not a big deal, but also something that could be corrected.

Copy link
Member Author

@bakkot bakkot Feb 1, 2026

Choose a reason for hiding this comment

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

I don't think git actually works like that.

That is, I am pretty sure there is nothing special about git mv as opposed to just adding removing, renaming, and re-adding.

@bakkot bakkot merged commit 21b595f into main Feb 18, 2026
2 checks passed
@bakkot bakkot deleted the no-mocha branch February 18, 2026 04:55
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.

convert tests to typescript

2 participants