rsnext/test/production
Hendrik Liebau 7523f327e0
Ensure required-server-files test can exit cleanly (#66765)
When running `pnpm test-start
test/production/standalone-mode/required-server-files/required-server-files.test.ts`
locally, Jest hangs and prevents the process from exiting. In the CI,
the issue is masked because `run-tests.js` uses `--forceExit`.

The reason for the hanging process is that there are two server
instances started, and only the last one is killed. By starting and
killing the server for each test we can not only fix this, but also
prevent the `should run middleware correctly (without minimalMode, with
wasm)` test from affecting the other tests when flipping the
`minimalMode` flag in `server.js`.

I also reverted the darwin-specific overwrites of `appPort` that were
added in #65722 and #66724. I don't think those are needed because after
#65722 was created we did land #66285 which sets the hostname to be
compatible with ipv4 and ipv6. If there's still a need to keep this then
let me know, and I will restore it.
2024-07-02 00:05:28 +02:00
..
allow-development-build add experimental flag to allow forcing NODE_ENV=development in builds (#65463) 2024-05-07 11:35:13 -07:00
app-dir Use addDependency to track metadata route file changes (#66714) 2024-06-11 17:19:23 +02:00
app-dir-edge-runtime-with-wasm Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-dir-hide-suppressed-error-during-next-export Change default of prerenderEarlyExit to true (#65830) 2024-05-20 12:51:01 -07:00
app-dir-prefetch-non-iso-url Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
app-dir-prevent-304-caching Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
bfcache-routing Improve handling of failed nextBuild() calls in test suite (#63717) 2024-03-27 19:29:16 +01:00
build-spinners Use consistent name for App Router tests (#56352) 2023-10-06 11:06:06 +02:00
ci-missing-typescript-deps Revert "Don't fail the build if @types/ packages appear to be missing" (#66130) 2024-05-23 09:01:10 -05:00
custom-error-500 Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
custom-server Update React from f994737d14 to 1df34bdf62 (19.0.0-rc.0) (#66533) 2024-06-10 12:06:38 +00:00
dependencies-can-use-env-vars-in-middlewares Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
deployment-id-handling Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
deterministic-build Re-land build(edge): extract buildId into environment (#65426) 2024-05-08 10:40:15 +02:00
disable-fallback-polyfills Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-config-validations Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-dynamic-code-eval fix(log): improve error when dynamic code eval is disallowed (#62999) 2024-03-12 23:31:32 +01:00
edge-runtime-is-addressable Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
emit-decorator-metadata Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
enoent-during-require Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
error-hydration Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
escheck-output Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
eslint feat: enable @typescript-eslint/recommended in create-next-app --typescript (#52845) 2024-06-27 09:37:01 +00:00
eslint-plugin-deps Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
export Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
exported-runtimes-value-validation Revert "refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc" (#62838) 2024-03-04 21:43:56 +00:00
fallback-export-error Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
fatal-render-errror Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
generate-middleware-source-maps Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
graceful-shutdown test: fix flaky tests and disabled constant failing ones (#65822) 2024-05-16 15:05:28 +02:00
handle-already-sent-response Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
ipc-forbidden-headers Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
jest Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
middleware-typescript Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
next-font Remove @next/font resolving for font loaders (#65601) 2024-05-10 20:12:03 +02:00
pages-dir/production Fix broken BrowserInterface type (#66461) 2024-06-03 12:56:49 +00:00
pnpm-support Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
postcss-plugin-config-as-string Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
prerender-prefetch Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
reading-request-body-in-middleware Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
sharp-basic Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
standalone-mode Ensure required-server-files test can exit cleanly (#66765) 2024-07-02 00:05:28 +02:00
supports-module-resolution-nodenext Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
terser-class-static-blocks Remove swc minify related code branches (#65690) 2024-05-13 23:37:37 +02:00
transpile-packages Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
typescript-basic Add typechecking test for all entrypoints (#64478) 2024-04-15 17:52:44 +02:00