Skip to content

tests framework updates - #35

Merged
kawanet merged 4 commits into
mainfrom
chore/browser-test
Sep 2, 2026
Merged

tests framework updates#35
kawanet merged 4 commits into
mainfrom
chore/browser-test

Conversation

@kawanet

@kawanet kawanet commented Sep 2, 2026

Copy link
Copy Markdown
Owner

@codex review

Copilot AI lite review requested due to automatic review settings September 2, 2026 11:38
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: e7aa308476

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The updated browser node:assert shim still uses unguarded JSON.stringify(...) in default assertion messages, which can throw and mask assertion failures.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the project’s test tooling and browser test harness, aligning dependency versions and improving browser-side assertion/shim behavior and CLI output for Playwright-driven Mocha runs.

Changes:

  • Bumped package version to 0.12.0 and updated devDependencies (notably Mocha, Rollup, Terser).
  • Refined the browser node:assert shim messaging/behavior (including a more informative doesNotThrow).
  • Improved browser CI ergonomics: browser Makefile now builds explicit artifacts, and the browser test CLI prints a concise stats line.
File summaries
File Description
package.json Version bump and test/build tool dependency updates.
builder/node-assert.shim.ts Updates browser-side node:assert shim behavior/messages for test bundles.
browser/tests.cli.mjs Prints Mocha run stats from the browser harness for clearer CLI output.
browser/Makefile Uses named artifact variables and invokes builder to produce required browser test outputs.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 6 to +10
export const strict = {
// Mirrors `assert.ok(value, message?)`.
// Truthy check. Mirrors `assert.ok(value, message?)` in node:assert.
ok(value: unknown, message?: string): void {
if (!value) {
throw new Error(message || "expected truthy, got " + JSON.stringify(value))
throw new Error(message || `expected truthy, got ${JSON.stringify(value)}`)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

right. maybe later

@kawanet
kawanet merged commit 70fcaf2 into main Sep 2, 2026
13 checks 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.

2 participants