import { isUnitTestSupportSource } from './pr-code-change-scope.mjs' const isProductSource = (file) => !/\.test\.tsx?$/.test(file) && !isUnitTestSupportSource(file) export const PR_WSL_E2E_SOURCE_ROUTES = [ { id: 'wsl-host.fake-connector', specs: ['tests/e2e/wsl-host-fake-transport.spec.ts', 'tests/e2e/wsl-host-chat.spec.ts'], matches: (file) => file === 'src/main/wsl/host-lifecycle/wsl-host-e2e-fake-connector.ts' }, { // Remove runs through the fake transport spec; its peer check asks the server who else uses it. id: 'wsl-host.remove', specs: ['tests/e2e/wsl-host-fake-transport.spec.ts'], matches: (file) => /^src\/main\/wsl\/host-lifecycle\/(?:wsl-host-server-stop|wsl-host-peer-desktops|wsl-host-removal)\.ts$/.test( file ) }, { // Startup recovery decides which journaled moves still fence after a restart. id: 'wsl-move.fence', specs: ['tests/e2e/wsl-move-fence.spec.ts'], matches: (file) => /^src\/(?:main\/(?:persistence\/moving-wsl-projects\/wsl-move-(?:scope-guard|fence|reset|startup|startup-rewrite|cutover-journal)|ipc\/pty\/host-env\/spawn-cwd|wsl\/host-lifecycle\/wsl-host-gate(?:-startup)?)|shared\/wsl-move\/wsl-move-cutover)\.ts$/.test( file ) }, { id: 'terminal.windows-wsl-launch-and-paste', specs: [ 'tests/e2e/golden-tab-bar-agent-launch.spec.ts', 'tests/e2e/terminal-windows-shell-paste-ownership.spec.ts' ], matches: (file) => isProductSource(file) && /^(?:config\/scripts\/(?:runtime-verification\/participation\/)?(?:verify-wsl-e2e-participation|verify-wsl-no-background-boot-participation|verify-playwright-participation)\.mjs$|config\/scripts\/(?:runtime-verification\/participation\/)?runtime-verification\/participation\/verify-playwright-participation\.mjs$|src\/main\/(?:wsl[/-]|pty\/.*wsl|providers\/wsl)|src\/shared\/(?:wsl-|windows-terminal-shell|shell\/launch\/shell-argument-quoting)|src\/renderer\/src\/.*(?:terminal-paste|pty-paste)|tests\/e2e\/(?:golden-tab-bar-agent-launch\.spec|terminal-windows-shell-paste-ownership\.spec|terminal-inline-images-windows\.spec|wsl-bridge-no-background-boot\.spec|helpers\/(?:wsl-golden-stub-agent|golden-stub-agent))|\.github\/(?:actions\/setup-wsl-test-runtime\/|workflows\/windows-wsl-e2e\.yml))/.test( file ) } ]