mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
* Add abort support to FormChecker delayed checks Support optional AbortController/AbortSignal in FormChecker.delayedCheck, skip aborted queued checks, and handle aborted/failed requests without stalling queue processing. Add regression test covering cancellation of outdated checks. * Update test/src/test/java/hudson/util/FormFieldValidatorTest.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Address review feedback on FormChecker abort handling Guard non-GET URL parsing when no query string is present, prevent schedule queue stalls on synchronous sendRequest failures, and make the regression test wait for queue drain instead of fixed timing. * Use JS based test instead of hacky htmlunit test --------- Co-authored-by: Kevin <kevin@Kevins-MacBook-Pro-3.local> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
13 lines
406 B
JavaScript
13 lines
406 B
JavaScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "jsdom",
|
|
include: ["src/test/js/**/*.test.js"],
|
|
// published by the Jenkinsfile; kept out of */target/surefire-reports so
|
|
// that Launchable does not try to parse it as Maven output
|
|
reporters: ["default", "junit"],
|
|
outputFile: { junit: "target/vitest-reports/junit.xml" },
|
|
},
|
|
});
|