AI: address review on PR #490

このコミットが含まれているのは:
Codex Night Worker
2026-11-22 01:44:36 +09:00
コミット 8b0433e344
5個のファイルの変更、17行の追加、8行の削除
+7
ファイルの表示
@@ -1,4 +1,5 @@
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
import { createServer } from 'node:http'
import { spawn } from 'node:child_process'
import { after, before, test } from 'node:test'
@@ -332,6 +333,12 @@ after (async () => {
if (errors.length) throw new AggregateError (errors, 'SSR teardown failed')
})
test ('SSR bundle uses JSX compatible with production React', async () => {
const bundle = await readFile (
new URL ('./dist/server/entry-server.js', import.meta.url), 'utf8')
assert.doesNotMatch (bundle, /react\/jsx-dev-runtime|\bjsxDEV\b/)
})
test ('counts SSR renders the shell without result requests or embedded results', async () => {
for (const locale of ['ja', 'ain-Kana']) {
for (const [resource, mode] of ['posts', 'tags'].flatMap (resource =>