Add a TAP test suite alongside mocha

Tests live in tests/, mirroring each package's src, and in
plugins/*/test/*.test.ts. They are TypeScript run by Node's type stripping,
so the @tapjs/typescript plugin is disabled and `pnpm install` runs tap build
to apply that.

The first tests cover the largest lib files: link, subscriptions, config
classes and prometheus. A shared helper checks the JSON serialisable class
pattern, and one test runs it on every serialisable class lib exports, with
samples generated from each class's schema.

Known bugs the new tests found are marked todo. Mocha, codecov and the
existing CI matrix are unchanged; tap.yml runs the new suite on the latest
Node.js and Factorio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-11-24 22:21:09 +00:00
1 parent bbcb64d411
commit b73b584d2d
16 files changed
+5348 -5

No files matched your search

+3
View File
@@ -47,3 +47,6 @@ autoInstallPeers: false
linkWorkspacePackages: true
shellEmulator: true
allowBuilds:
'@swc/core': false