Skip to content

Commit eed0ba6

Browse files
only21milclaude
andcommitted
test(scripts): group the node:test routing case with the file-list tests
Moves it after the runSteps cases, clear of other check:changed test additions at the top and end of the describe block. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 90cc82f commit eed0ba6

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎scripts/check-changed.test.ts‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,6 @@ describe("check:changed", () => {
3434
assert.strictEqual(defaultConcurrency(1, 64 * GiB), 1);
3535
});
3636

37-
it("runs the .github/scripts node:test files with node --test, not vitest", () => {
38-
assert.deepStrictEqual(
39-
splitTests([
40-
"apps/server/src/ws.test.ts",
41-
".github/scripts/ci-changes.test.cjs",
42-
".github\\scripts\\thread-transfer-report.test.cjs",
43-
"scripts/check-changed.test.ts",
44-
]),
45-
{
46-
vitestTests: ["apps/server/src/ws.test.ts", "scripts/check-changed.test.ts"],
47-
nodeTests: [
48-
".github/scripts/ci-changes.test.cjs",
49-
".github\\scripts\\thread-transfer-report.test.cjs",
50-
],
51-
},
52-
);
53-
});
54-
5537
it.effect(
5638
"keeps weighted steps within the budget, in order, and serial steps one at a time",
5739
() =>
@@ -147,6 +129,24 @@ describe("check:changed", () => {
147129
}),
148130
);
149131

132+
it("runs the .github/scripts node:test files with node --test, not vitest", () => {
133+
assert.deepStrictEqual(
134+
splitTests([
135+
"apps/server/src/ws.test.ts",
136+
".github/scripts/ci-changes.test.cjs",
137+
".github\\scripts\\thread-transfer-report.test.cjs",
138+
"scripts/check-changed.test.ts",
139+
]),
140+
{
141+
vitestTests: ["apps/server/src/ws.test.ts", "scripts/check-changed.test.ts"],
142+
nodeTests: [
143+
".github/scripts/ci-changes.test.cjs",
144+
".github\\scripts\\thread-transfer-report.test.cjs",
145+
],
146+
},
147+
);
148+
});
149+
150150
it.effect("fails instead of returning an empty file list when git exits nonzero", () => {
151151
const spawner = (exitCode: number) =>
152152
ChildProcessSpawner.make(() =>

0 commit comments

Comments
 (0)