chore(lint): forbid declaring tests inside for loops (#14921)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Opus 5.5 authored and GitHub committed 2026-10-02 16:07:50 -07:00
1 parent a8927712f8
commit fd7ee2c30a
86 files changed
+6142 -6059

No files matched your search

@@ -408,8 +408,9 @@ it("reports an update hint instead of unauthenticated when gh predates --json",
);
});
for (const kind of ["pull", "issues"]) {
it.effect(`resolves ${kind} subjects on the linked host without using the checkout`, () =>
it.effect.each(["pull", "issues"])(
"resolves %s subjects on the linked host without using the checkout",
(kind) =>
Effect.gen(function* () {
const provider = yield* makeProvider({
execute: (input) => {
@@ -449,11 +450,11 @@ for (const kind of ["pull", "issues"]) {
undefined,
);
}),
);
}
);
for (const stage of ["read", "decode"] as const) {
it.effect(`retains the ${stage} failure without exposing its raw contents`, () =>
it.effect.each(["read", "decode"] as const)(
"retains the %s failure without exposing its raw contents",
(stage) =>
Effect.gen(function* () {
const cause = new GitHubCli.GitHubCliCommandError({
command: "gh",
@@ -484,5 +485,4 @@ for (const stage of ["read", "decode"] as const) {
if (stage === "read") assert.strictEqual(error.cause, cause);
else assert.propertyVal(error.cause, "_tag", "SchemaError");
}),
);
}
);