Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(scripts): check:changed no longer passes failing .github/scripts tests #28296

Mergedonly21mil(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/28296/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 42 additions and 3 deletions.

x
0 of 2 viewed, 2 left
19 additions and 0 deletionsscripts/check-changed.test.tsModified
View file
@@ -19,6 +19,7 @@
defaultConcurrency,
gitLines,
runSteps,
+ splitTests,
type Step,
} from "./check-changed.ts";
​
@@ -128,6 +129,24 @@
}),
​
+ it("runs the .github/scripts node:test files with node --test, not vitest", () => {
+ assert.deepStrictEqual(
+ splitTests([
+ "apps/server/src/ws.test.ts",
+ ".github/scripts/ci-changes.test.cjs",
+ ".github\\scripts\\thread-transfer-report.test.cjs",
+ "scripts/check-changed.test.ts",
+ ]),
+ {
+ vitestTests: ["apps/server/src/ws.test.ts", "scripts/check-changed.test.ts"],
+ nodeTests: [
+ ".github/scripts/ci-changes.test.cjs",
+ ".github\\scripts\\thread-transfer-report.test.cjs",
+ ],
+ },
+ );
+ });