Skip to content

Conversation

@ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Oct 31, 2025

This PR make test use node:test vs vitest, as the latter isn't compatible with bunJS and as such prevent us to work toward support for this runtime

@ndeloof ndeloof force-pushed the bunjs branch 10 times, most recently from 57e797f to 9335c92 Compare October 31, 2025 18:47
@ndeloof ndeloof marked this pull request as ready for review October 31, 2025 18:54
@ndeloof ndeloof requested a review from wmluke as a code owner October 31, 2025 18:54
Copy link
Contributor

@wmluke wmluke 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. Just some minor changes.

const totalTime = Date.now() - startTime;

// Verify all requests completed successfully
assert.ok(results[0]); // systemPing result
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit concerned about replacing isNotNull with ok. The former is strictly checking that the value !== null. The latter is checking that its truthy, which is significantly wider assertion. Maybe try assert. notStrictEqual(results[0], null)

test('should return undefined for null', () => {
const result = getErrorMessage(null);
assert.isUndefined(result);
assert.equal(result, undefined);
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend assert.strictEqual b/c it uses === while assert.equal uses ==.

Signed-off-by: Nicolas De Loof <[email protected]>
@ndeloof ndeloof merged commit 47ac3bc into docker:main Nov 1, 2025
7 checks passed
@ndeloof ndeloof deleted the bunjs branch November 1, 2025 18:09
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.

2 participants