Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: format browser test skip scripts with prettier

Steven Enamakelb456d3fb8ee0
diff --git a/scripts/__tests__/browser-test-skips.test.mjs b/scripts/__tests__/browser-test-skips.test.mjs
index 403fa7f01e..b12cf07ea0 100644
--- a/scripts/__tests__/browser-test-skips.test.mjs
+++ b/scripts/__tests__/browser-test-skips.test.mjs
@@ -83,7 +83,8 @@ test("parses TypeScript and TSX using each spec's actual language mode", () => {
test("fails closed when a browser spec cannot be parsed", () => {
assert.throws(
- () => untrackedSkipLines("const = ;\ntest.skip('unlinked');", "broken.spec.ts"),
+ () =>
+ untrackedSkipLines("const = ;\ntest.skip('unlinked');", "broken.spec.ts"),
/Could not parse broken\.spec\.ts at line 1/,
);
});
diff --git a/scripts/ci/check-browser-test-skips.mjs b/scripts/ci/check-browser-test-skips.mjs
index 86d6356aed..56369022f7 100644
--- a/scripts/ci/check-browser-test-skips.mjs
+++ b/scripts/ci/check-browser-test-skips.mjs
@@ -29,9 +29,10 @@ export function untrackedSkipLines(source, fileName = "browser-spec.ts") {
);
if (sourceFile.parseDiagnostics.length > 0) {
const diagnostic = sourceFile.parseDiagnostics[0];
- const location = diagnostic.start === undefined
- ? ""
- : ` at line ${sourceFile.getLineAndCharacterOfPosition(diagnostic.start).line + 1}`;
+ const location =
+ diagnostic.start === undefined
+ ? ""
+ : ` at line ${sourceFile.getLineAndCharacterOfPosition(diagnostic.start).line + 1}`;
throw new Error(
`Could not parse ${fileName}${location}: ${ts.flattenDiagnosticMessageText(diagnostic.messageText, " ")}`,
);