The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(ci): catch qualified skip helpers in browser test guard
Steven Enamakelce9a0c11e949
diff --git a/scripts/__tests__/browser-test-skips.test.mjs b/scripts/__tests__/browser-test-skips.test.mjsindex e596497272..5176d947e0 100644--- a/scripts/__tests__/browser-test-skips.test.mjs+++ b/scripts/__tests__/browser-test-skips.test.mjs@@ -9,6 +9,8 @@ test("browser skip guard requires an issue URL on the added skip line", () => {"+ this.skip(); // https://github.com/tinyhumansai/openhuman/issues/124","+ it.skip('missing link', () => {}); // see issue #456","+ describe.skip('also missing', () => {});",+ "+ test.describe.skip('qualified and missing', () => {});",+ "+ test.step.skip('qualified helper and missing', () => {});","+ this.skip(); // no issue link","+ test.skip( // multiline call still needs link on this line","+ 'tracked only on the next line' // https://github.com/tinyhumansai/openhuman/issues/789",@@ -19,6 +21,8 @@ test("browser skip guard requires an issue URL on the added skip line", () => {assert.deepEqual(untrackedSkipLines(patch), ["it.skip('missing link', () => {}); // see issue #456","describe.skip('also missing', () => {});",+ "test.describe.skip('qualified and missing', () => {});",+ "test.step.skip('qualified helper and missing', () => {});","this.skip(); // no issue link","test.skip( // multiline call still needs link on this line",]);diff --git a/scripts/ci/check-browser-test-skips.mjs b/scripts/ci/check-browser-test-skips.mjsindex 55ed4ddf0d..f8bcc1b100 100644--- a/scripts/ci/check-browser-test-skips.mjs+++ b/scripts/ci/check-browser-test-skips.mjs@@ -11,7 +11,7 @@ export function untrackedSkipLines(patch) {if (!line.startsWith("+") || line.startsWith("+++")) continue;const source = line.slice(1);if (/^\s*\/\//.test(source)) continue;- if (!/\b(?:it|test|describe)\.skip\s*\(|\bthis\.skip\s*\(/.test(source)) continue;+ if (!/\.skip\s*\(/.test(source)) continue;if (!/https:\/\/github\.com\/[\w.-]+\/[\w.-]+\/issues\/\d+/.test(source)) {failures.push(source.trim());}