Skip to content

test(nodejs): unit tests - #331

Merged
grypez merged 36 commits into
mainfrom
grypez/nodejs-unit-tests
Jan 28, 2025
Merged

test(nodejs): unit tests#331
grypez merged 36 commits into
mainfrom
grypez/nodejs-unit-tests

Conversation

@grypez

@grypezgrypez commented Jan 14, 2025

Copy link
Copy Markdown
Member

This PR provides unit test coverage for the src files of the @ocap/nodejs package, with the following exceptions:

  • The file @ocap/nodejs/src/kernel/sqlite-kv-store.ts is uncovered, in accordance @ocap/extension/src/kernel-integration/sqlite-kv-store.ts. The unit-testing coverage for these KVStore implementations should likely factor through a common abstraction.
  • @ocap/nodejs/src/vat/vat-worker.ts is not unit-tested, but is expressed in the associated e2e tests.

The PR also reenables the e2e tests for the @ocap/nodejs package and improves the e2e test coverage.

@grypezgrypez mentioned this pull request Jan 14, 2025
@rekmarks
rekmarks changed the base branch from main to grypez/nodejs-pkgJanuary 14, 2025 18:12
@grypez
grypezforce-pushed the grypez/nodejs-unit-tests branch from 5fe311e to 8e4c53eCompareJanuary 14, 2025 20:21
@rekmarksrekmarks linked an issue Jan 15, 2025 that may be closed by this pull request
4 tasks
Base automatically changed from grypez/nodejs-pkg to mainJanuary 16, 2025 15:01
@grypez
grypezforce-pushed the grypez/nodejs-unit-tests branch from 8e4c53e to 3698f69CompareJanuary 16, 2025 17:44
@grypez
grypezforce-pushed the grypez/nodejs-unit-tests branch from 3698f69 to 9f034bbCompareJanuary 21, 2025 21:26
@grypez
grypezforce-pushed the grypez/nodejs-unit-tests branch from 9eed395 to 73dc899CompareJanuary 24, 2025 21:19
@grypez
grypezforce-pushed the grypez/nodejs-unit-tests branch 11 times, most recently from 06f0b90 to ca0e73aCompareJanuary 27, 2025 18:30
@grypez
grypezforce-pushed the grypez/nodejs-unit-tests branch from ca0e73a to d760a69CompareJanuary 27, 2025 18:58
@grypez
grypez marked this pull request as ready for review January 27, 2025 20:15
@grypez
grypez requested a review from a team as a code ownerJanuary 27, 2025 20:15

@sirtimidsirtimid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@grypez
grypez merged commit 32bee6b into mainJan 28, 2025
@grypez
grypez deleted the grypez/nodejs-unit-tests branch January 28, 2025 18:52
Sign up for freeto 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.

Add a Node.js implementation of the kernel

3 participants

@grypez@sirtimid@rekmarks