- 0 succeeded, 0 failed.
+ 0 succeeded, 0
+ failed, 0 skipped.
+Successful test
+Failed test
+Partially or fully skipped test
+
diff --git a/cmd/pkgserver/ui_test/sample_tests.ts b/cmd/pkgserver/ui_test/sample_tests.ts
index d3a9dfed..8d1b5526 100644
--- a/cmd/pkgserver/ui_test/sample_tests.ts
+++ b/cmd/pkgserver/ui_test/sample_tests.ts
@@ -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"]`);
}