Since Vite 5 > 6 migration, integration tests are throwing (harmless) errors on server close
Since Vite 5 > 6 update, tests are semi-randomly throwing errors the moment the Vite server is closed (in the `after` utility).
Hopefully, it doesn't affect the test usefulness but it is obscuring console output and it's worth investigating what is triggering this since the Vite migration.
https://github.com/gracile-web/gracile/actions/runs/14309408957/job/40100552152#step:15:130
```
# /home/runner/work/gracile/gracile/integration/__fixtures__/static-site/dist_expected/00-routes/05-torture-test/car/bike/boat/train/red/index.html
# ✘ [ERROR] The server is being restarted or closed. Request is outdated [plugin vite:dep-scan]
# ../node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:47418:14:
# 47418 │ const err = new Error(
# ╵ ^
# at throwClosedServerError (/home/runner/work/gracile/gracile/node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:47418:15)
# at EnvironmentPluginContainer.resolveId (/home/runner/work/gracile/gracile/node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:47597:9)
# at resolveId (/home/runner/work/gracile/gracile/node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:17669:40)
# at resolve (/home/runner/work/gracile/gracile/node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:17680:28)
# at <anonymous> (/home/runner/work/gracile/gracile/node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:17735:32)
# at requestCallbacks.on-resolve (/home/runner/work/gracile/gracile/node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:1227:28)
# at handleRequest (/home/runner/work/gracile/gracile/node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:648:17)
# at handleIncomingPacket (/home/runner/work/gracile/gracile/node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:673:7)
# at Socket.readFromStdout (/home/runner/work/gracile/gracile/node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:601:7)
# at Socket.emit (node:events:520:28)
# This error came from the "onResolve" callback registered here:
# ../node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:17734:12:
# 17734 │ build.onResolve({ filter: htmlTypesRE }, async ({ path: p...
# ╵ ~~~~~~~~~
# at setup (/home/runner/work/gracile/gracile/node_modules/.pnpm/vite@6.2.5_@types+node@22.10.5_jiti@2.4.2_sass@1.80.4_terser@5.37.0_tsx@4.19.3_yaml@2.7.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:17734:13)
# at handlePlugins
```
0 条评论