Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 17, 2025

Deno 2.6.1 upgrade broke tests due to @std/assert API changes. Test files imported from "assert" (mapped to v1.0.6) which no longer exports the required assertion functions.

Changes:

  • Updated test imports from "assert" to "@std/assert" (v1.0.14)
  • Fixed AssertionError constructor to use options object instead of string parameter

Affected files:

  • main.test.ts
  • src/commands/set.test.ts
  • src/commands/options.test.ts
  • src/hooks/post.test.ts
  • src/util/increment.test.ts
  • src/util/version.test.ts

Example change:

// Before
import { assertEquals, AssertionError } from "assert";
const err = new AssertionError("testing");

// After
import { assertEquals, AssertionError } from "@std/assert";
const err = new AssertionError({ message: "testing" });

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@justinmchase justinmchase marked this pull request as ready for review December 17, 2025 05:20
@justinmchase justinmchase self-requested a review as a code owner December 17, 2025 05:20
Copilot AI changed the title [WIP] Update denoland/deno from alpine-2.5.6 to alpine-2.6.1 Fix test imports for Deno 2.6.1 compatibility Dec 17, 2025
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