1.18.0 performance items: tests, the reference budget gate tightened (JS 195 kB, 404 without its exception, TTL check), docs (performance.md, AGENT.md, iapl-performance, module pages, api.md), changelog: what changes for an existing site
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d628839235
commit
f0127ac1b8
@@ -70,7 +70,7 @@ describe('stripImageMetadata', () => {
|
||||
|
||||
describe('buildOptimizeUploadHook: metadata on uploads that pass the limits', () => {
|
||||
const run = async (data: Buffer, options = {}) => {
|
||||
const file = { data, mimetype: 'image/jpeg', name: 'photo.jpg', size: data.length }
|
||||
const file = { name: 'photo.jpg', data, mimetype: 'image/jpeg', size: data.length }
|
||||
await buildOptimizeUploadHook(options)({ args: { data: {} }, operation: 'create', req: { file, i18n: { language: 'en' }, payload: { config: { sharp } } } } as never)
|
||||
return file
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user