Skip to content

Commit

Permalink
check resolve error string
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 21, 2024
1 parent b435563 commit f51bba7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { join } from "@std/path";
import { walk } from "@std/fs";
import { assertEquals } from "@std/assert";
import { assertEquals, assertNotMatch } from "@std/assert";

const decoder = new TextDecoder();

Deno.test("Check examples", async (t) => {
for await (const item of walk("./examples")) {
Expand All @@ -13,6 +15,7 @@ Deno.test("Check examples", async (t) => {
args: ["info", path],
}).output();
assertEquals(result.code, 0);
assertNotMatch(decoder.decode(result.stdout), /\(resolve error\)/);
});
}
});

0 comments on commit f51bba7

Please sign in to comment.