Skip to content

Conversation

@grypez
Copy link
Contributor

@grypez grypez commented Apr 16, 2025

Refs: #217

  • The base console is replaced with the @ocap/utils logger
  • Improves the test coverability and test coverage of the cli package

@grypez grypez force-pushed the grypez/cli-touchup branch from eb9c24c to 8b0ad6f Compare April 16, 2025 16:07
@grypez grypez marked this pull request as ready for review April 16, 2025 16:30
@grypez grypez requested a review from a team as a code owner April 16, 2025 16:30
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

Looks good. A couple of inline items, and also:

The name of this PR should be feat(cli): Use @ocap/utils logger. If we were only adding tests the current name would be fine, but we're modifying the behavior of the module.

Comment on lines 63 to 66
export async function bundleSource(
logger: Logger,
target: string,
): Promise<void> {
Copy link
Member

Choose a reason for hiding this comment

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

Ditto re: logger param position.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines 82 to 84
// Note: the behavior of fileExists is negotiable. The current implementation
// is a guess at a platform-independent behavior. This test suite documents
// the behavior of the current implementation.
Copy link
Member

Choose a reason for hiding this comment

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

This comment should be moved to the implementation of the function, perhaps phrased along the lines of "may not work on Windows".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@grypez grypez changed the title test(cli): Improve test coverage feat(cli): Use @ocap/utils logger Apr 17, 2025
Copy link
Member

@rekmarks rekmarks left a comment

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 697008e into main Apr 17, 2025
21 checks passed
@grypez grypez deleted the grypez/cli-touchup branch April 17, 2025 17:19
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.

3 participants