rsnext/test/unit/image-optimizer
Steven 3dc2e672f1
fix(next/image): add missing svg test refactor missing types (#65345)
The tests added in https://github.com/vercel/next.js/pull/46219 were
never correctly testing the headers because `detectContentType()` is
called first and only when we can't detect the type from the response
body do we fallback to the `Content-Type` header.

I also refactored some of the tests because the `ctx: any` type was
causing some tests to not run when testing different configuration
options.

Closes NEXT-3321
2024-05-06 22:32:26 +00:00
..
images fix(next/image): add missing svg test refactor missing types (#65345) 2024-05-06 22:32:26 +00:00
detect-content-type.test.ts fix(next/image): add missing svg test refactor missing types (#65345) 2024-05-06 22:32:26 +00:00
get-max-age.test.ts Move unit tests to one folder and migrate them to TypeScript (#28427) 2021-08-24 07:52:45 -05:00
match-remote-pattern.test.ts fix:(next/image) handle remotePatterns with a dot in the pathname (#60488) 2024-02-08 18:21:29 -05:00