Skip to content

fix(lib): correctness bugs, dead import + lightweight tooling#175

Merged
AlreadyBored merged 1 commit into
masterfrom
improvements/cleanup-and-tooling
Jun 28, 2026
Merged

fix(lib): correctness bugs, dead import + lightweight tooling#175
AlreadyBored merged 1 commit into
masterfrom
improvements/cleanup-and-tooling

Conversation

@AlreadyBored

Copy link
Copy Markdown
Owner

What & why

Cleanup of lib/ correctness bugs and a couple of housekeeping items. No task logic or test expectations changed — npm test stays green on the stubs (0 fail, 69 todo).

Bug fixes

  • lib/errors.jsNotImplementedError now respects the message argument that every stub already passes (new NotImplementedError('Not implemented')); previously the constructor hardcoded the string and silently ignored the arg.
  • lib/optional-test-extension.js — the test callback now returns the promise from the async path, so async test failures are awaited by node:test instead of leaking as unhandled rejections.
  • src/simple-chain.js — removed a broken decorateObject import (not exported by lib, resolved to undefined, never used).

Housekeeping

  • package.json — dropped the bogus main: index.js (no such file).
  • Added .nvmrc (22), .editorconfig, and a CI workflow running npm test on PRs/pushes.

🤖 Generated with Claude Code

- errors.js: NotImplementedError now respects the message argument that
  every stub passes (was hardcoded and ignored)
- optional-test-extension.js: return the test callback's promise so async
  test failures are awaited by node:test instead of leaking
- simple-chain.js: remove broken `decorateObject` import (not exported by
  lib, never used)
- package.json: drop bogus `main: index.js` (no such file)
- add .nvmrc, .editorconfig and a CI workflow running `npm test`

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AlreadyBored AlreadyBored merged commit 17af465 into master Jun 28, 2026
1 check passed
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.

1 participant