/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/compression/compression.test.ts
13 строк
308 B
Tim Neutkens
Convert test/integration to isolated tests (#93247)
11 май 2026, 14:55
Не верифицирован
11 май 2026, 14:55
8141dcf
Код
Авторство
О чём код?
import { nextTestSetup } from 'e2e-utils' describe('Compression', () => { const { next } = nextTestSetup({ files: __dirname, }) it('should compress responses by default', async () => { const res = await next.fetch('/') expect(res.headers.get('content-encoding')).toMatch(/gzip/) }) })