test: remove redundant deployment skips from mode-guarded suites (#98908)
## Summary Remove 28 redundant `skipDeployment` options across 16 e2e test files whose existing mode guards already exclude deploy. Preserve the original tests, fixtures, assertions, and outer mode guards. Remove the redundant inner deploy return in Custom routes export so Jest still registers its skipped test instead of rejecting an empty suite with setup hooks. This includes the loader-file error suite: its dev and local build/start sections have no enabled descendant tests in deploy mode, so Jest does not run their enclosing setup hooks. Removing these options does not enable new deployment coverage. Stacks on #98842, which contains the whole-suite moves. ## Verification - Verified the 28 option removals; the custom-routes collection fix additionally removes the redundant inner return and unused destructured mode flag. - A focused Jest Circus reproduction using the affected describe block reproduced both empty-suite hook errors before the fix; afterward it collected one skipped test, ran no setup or teardown hooks, and reported no errors. - Formatting, ESLint, and whitespace checks passed for the constituent changes. - Verified with Jest Circus that an outer `beforeAll` does not execute when all descendant tests are skipped. - Runtime tests were not rerun locally for this fold; CI runs on the updated branch. <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment