rsnext/test
Steven f169b08901
fix(next/image)!: error when src has leading or trailing space (#65637)
BREAKING CHANGE:

Using the built-in image optimization API, the URL is parsed with `new
URL()` constructor which automatically trims spaces.

However, the developer may choose a 3rd party image optimization API via
`loader` or `loaderFile` (or perhaps a deployment platform that has its
own built in loader), so we shouldn't assume the API will parse the URL
in the same way as
[WHATWG](https://url.spec.whatwg.org/#:~:text=If%20input%20contains%20any%20leading%20or%20trailing%20C0%20control%20or%20space%2C%20invalid%2DURL%2Dunit%20validation%20error.).

While we could trim on the client, its probably best to fail fast and
let the developer make a conscience decision if a trailing space should
be removed or remain (by explicitly using `%20`).
2024-05-14 18:00:27 +00:00
..
.stats-app Fix /dynamic in test/.stats-app (#65543) 2024-05-09 10:09:24 -06:00
development Remove swc minify related code branches (#65690) 2024-05-13 23:37:37 +02:00
e2e Reland Remove ineffective webpack rules and unused app-page context modules (#65694) 2024-05-13 23:37:13 +02:00
examples Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
integration fix(next/image)!: error when src has leading or trailing space (#65637) 2024-05-14 18:00:27 +00:00
lib Fix NEXT_SKIP_ISOLATE=1 log for testing (#65590) 2024-05-10 08:34:34 -06:00
production Remove swc minify related code branches (#65690) 2024-05-13 23:37:37 +02:00
unit Show the new key of experimental config change warnings (#65651) 2024-05-13 11:20:18 +02:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-build-tests-manifest.js Ensure production integration test results are uploaded (#63706) 2024-03-26 10:41:16 +01:00
build-turbopack-dev-tests-manifest.js Rename turbopack-tests-manifest to turbopack-dev-tests-manifest (#63409) 2024-03-19 10:26:14 +01:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
get-test-filter.js run tests from test suite that are not listed in the manifest (#58401) 2024-01-11 07:38:35 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json add experimental client router cache config (#62856) 2024-04-02 05:42:18 -07:00
readme.md
related-tests-manifest.json Reapply "chore(test): run related E2E deploy tests on PRs" (#64682) (#64712) 2024-04-19 11:02:43 +02:00
test-file.txt
turbopack-build-tests-manifest.json feat!(next/image): change default Content-Disposition to attachment (#65631) 2024-05-10 21:35:48 -04:00
turbopack-dev-examples-manifest.json Fix last examples for Turbopack (#64020) 2024-04-03 16:02:52 +02:00
turbopack-dev-tests-manifest.json Remove @next/font resolving for font loaders (#65601) 2024-05-10 20:12:03 +02:00

See Testing for more information on how you can run/write/debug tests for Next.js.