AI: address review on PR #490
このコミットが含まれているのは:
@@ -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 =>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする