You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Scanned ${report.summary.scannedFiles} test files; found ${report.summary.loopCount}table-test candidate loop(s) in ${report.summary.filesWithLoops} file(s).`,
267
+
`Scanned ${report.summary.scannedFiles} test files; found ${report.summary.loopCount} test loop(s) in ${report.summary.filesWithLoops} file(s).`,
expect(result.stderr).toContain("FAIL: changed test files add table-test candidate loops.");
109
+
expect(result.stderr).toContain("FAIL: changed test files increase test-loop counts.");
110
110
expect(result.stderr).toContain(
111
-
"test/a.test.ts: 1 table-test candidate loop(s), up from 0",
111
+
"test/a.test.ts: 1 test loop(s), up from 0",
112
+
);
113
+
expect(result.stderr).toContain(
114
+
"Move iteration needed for one behavior into a named helper outside the test callback. Use it.each or test.each when loop rows are independent cases.",
console.error("FAIL: changed test files add table-test candidate loops.");
123
+
console.error("FAIL: changed test files increase test-loop counts.");
124
124
console.error(
125
-
`Changed test files contain ${result.headTotal}table-test candidate loop(s) at the latest PR commit vs ${result.baseTotal} at base.`,
125
+
`Across all changed test files: ${result.headTotal} test loop(s) at the latest PR commit vs ${result.baseTotal} at base.`,
126
126
);
127
127
console.error("");
128
128
console.error(
129
-
"Test cases should stay linear. Use it.each or test.each for independent cases. Move iteration that represents one behavior into a named helper outside the test callback.",
129
+
"Keep test callbacks linear. Move iteration needed for one behavior into a named helper outside the test callback. Use it.each or test.each when loop rows are independent cases.",
130
130
);
131
131
console.error("");
132
132
console.error("Files with increased test loop counts:");
@@ -136,7 +136,7 @@ async function main(): Promise<void> {
136
136
process.exit(1);
137
137
}
138
138
console.log(
139
-
`PASS: changed test files did not add table-test candidate loops (${result.headTotal} at the latest PR commit vs ${result.baseTotal} at base).`,
139
+
`PASS: no changed test file increased its test-loop count (${result.headTotal} total at the latest PR commit vs ${result.baseTotal} at base).`,
0 commit comments