Skip to content

Commit ae675ef

Browse files
Fix test failures after Deno 2.6.3 upgrade (#139)
* Initial plan * Plan to fix test failures after Deno 2.6.3 upgrade Co-authored-by: justinmchase <[email protected]> * Fix test failures by updating assert imports to @std/assert Co-authored-by: justinmchase <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: justinmchase <[email protected]>
1 parent 332602e commit ae675ef

File tree

8 files changed

+30
-15
lines changed

8 files changed

+30
-15
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"jsonc-parser": "npm:jsonc-parser@^3.2.1",
88
"semver": "jsr:@std/semver@^1.0.6",
99
"path": "jsr:@std/path@^1.0.6",
10-
"assert": "jsr:@std/assert@^1.0.6",
10+
"assert": "jsr:@std/assert@^1.0.14",
1111
"testing/bdd": "jsr:@std/testing@^1.0.3/bdd",
1212
"testing/mock": "jsr:@std/testing@^1.0.3/mock",
1313
"yaml": "jsr:@std/yaml@^1.0.5",

deno.lock

Lines changed: 23 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it } from "testing/bdd";
2-
import { assertEquals } from "assert";
2+
import { assertEquals } from "@std/assert";
33

44
describe("main", () => {
55
it("MAIN00 - filters empty arguments", () => {

src/commands/options.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it } from "testing/bdd";
2-
import { assertEquals } from "assert";
2+
import { assertEquals } from "@std/assert";
33
import { build, config, json, output, prerelease } from "./options.ts";
44

55
describe("options", () => {

src/commands/set.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
returnsNext,
77
stub,
88
} from "testing/mock";
9-
import { assertRejects } from "assert";
9+
import { assertRejects } from "@std/assert";
1010
import type { Arguments } from "yargs";
1111
import { set } from "./set.ts";
1212
import { testContext } from "../util/testContext.ts";

src/hooks/post.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { parse } from "semver";
2-
import { assertEquals } from "assert";
2+
import { assertEquals } from "@std/assert";
33
import { resolvesNext, stub } from "testing/mock";
44
import * as YAML from "yaml";
55
import { IContext } from "../context.ts";

src/util/increment.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "assert";
1+
import { assertEquals } from "@std/assert";
22
import { format, parse } from "semver";
33
import { increment, IncrementKind, IncrementOptions } from "./increment.ts";
44

src/util/version.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { format, parse } from "semver";
2-
import { assertEquals, AssertionError, assertRejects } from "assert";
2+
import { assertEquals, AssertionError, assertRejects } from "@std/assert";
33
import { assertSpyCall, resolvesNext, stub } from "testing/mock";
44
import { IContext } from "../context.ts";
55
import { printVersion, readVersionFile, writeVersionFile } from "./version.ts";

0 commit comments

Comments
 (0)