1
0
forked from rosa/hakurei

TODO: implement skipping from TestController

This commit is contained in:
Kat
2026-03-20 03:49:44 +11:00
parent 877be3308e
commit 98c6d86be0
11 changed files with 147 additions and 32 deletions

View File

@@ -37,6 +37,10 @@ suite("cat", [
test("likes headpats", (t) => {
t.log("meow");
}),
test("owns skipping rope", (t) => {
t.skip("this cat is stuck in your machine!");
t.log("never logged");
}),
test("tester tester", (t) => {
const r = new TestRegistrar();
r.suite("explod", [
@@ -73,7 +77,7 @@ suite("cat", [
result.path[1] === "with yarn")) {
t.error(`incorrect result path got=${result.path} want=["explod", "with yarn"]`);
}
if (!result.success) t.error(`expected test to succeed`);
if (result.state !== "success") t.error(`expected test to succeed`);
if (!(result.logs.length === 1 && result.logs[0] === "YAY")) {
t.error(`incorrect result logs got=${result.logs} want=["YAY"]`);
}