Skip to content

fix(lib): correctness bugs, align with basic-js, refresh tooling & docs - #38

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

fix(lib): correctness bugs, align with basic-js, refresh tooling & docs#38
AlreadyBored merged 1 commit into
masterfrom
improvements/cleanup-and-tooling

Conversation

@AlreadyBored

Copy link
Copy Markdown
Owner

What & why

Cleanup of lib/ correctness bugs, alignment with the basic-js repo, and removal of stale artifacts. No task logic or test expectations changed — npm test stays green on the stubs (0 fail, 20 todo).

Bug fixes

  • lib/optional-test-extension.js — removed a leftover console.log('ERROR', err) debug line that printed on every test error; the async path now returns its promise so failures are awaited by node:test.
  • lib/errors.js — pending tasks are marked with this.todo() instead of this.skip() (matches basic-js); NotImplementedError now respects its message argument.

Consistency with basic-js

  • lib/index.js — export NotImplementedError.
  • src/* — import NotImplementedError from ../lib (was ../lib/errors).

Housekeeping

  • package.json — dropped the bogus main: index.js.
  • Removed the stale package-lock.json (pinned ~100 mocha/chai/sinon packages from before the native-runner migration; the repo has no dependencies now).
  • README.md — dropped the obsolete node-gyp troubleshooting note and bumped the recommended Node version 16 → 22 (matches engines).
  • Added .nvmrc (22), .editorconfig, and a CI workflow running npm test.

🤖 Generated with Claude Code

- optional-test-extension.js: remove leftover `console.log('ERROR', err)`
  debug line; return the test callback's promise so async failures are
  awaited by node:test
- errors.js: mark pending tasks with `this.todo()` instead of `this.skip()`
  (matches basic-js); NotImplementedError now respects its message argument
- lib/index.js: export NotImplementedError so stubs can import from ../lib
- src/*: import NotImplementedError from ../lib (was ../lib/errors) for
  consistency with basic-js
- package.json: drop bogus `main: index.js`
- remove stale package-lock.json (pinned mocha/chai/sinon; repo has no deps
  since the native-runner migration)
- README: drop obsolete node-gyp troubleshooting, bump recommended Node 16 -> 22
- add .nvmrc, .editorconfig and a CI workflow running `npm test`

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AlreadyBored
AlreadyBored merged commit a87c2a8 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