From cf4857de5a316fc7cab03f6e7902da0cbbf9dd74 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 16 Nov 2026 11:28:01 +0900 Subject: [PATCH] Show a better error message if a test file is missing a descrption --- src/common/internal/tree.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/internal/tree.ts b/src/common/internal/tree.ts index a284c56a4153..406ed5a90f07 100644 --- a/src/common/internal/tree.ts +++ b/src/common/internal/tree.ts @@ -420,6 +420,7 @@ function setSubtreeDescriptionAndCountTODOs( description: string ) { assert(subtree.description === undefined); + assert(!!description, 'missing `export const description = ...;` in your .spec.ts file'); subtree.description = description.trim(); subtree.subtreeCounts ??= { tests: 0, nodesWithTODO: 0, totalTimeMS: 0 }; if (subtree.description.indexOf('TODO') !== -1) {