rsnext/test
Jiachi Liu eaaa193751
Always transform styled-jsx for rsc and error with client-only condition (#43386)
Previously we stopped transform css-in-js libraries for RSC server layer because it's not encouraged to use them in server components but client components for saving the bytes of RSC payload.
We can detect styled-jsx usage on RSC server layer and error with `client-only` condition, but since it was not transformed properly so it's not erroring properly.

In the future, once styled-components and emotion have `client-only` depepdency integrated so we can re-enable the transform for them on server layer

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
2022-11-26 00:36:18 +00:00
..
.stats-app Merge app internal chunk into main chunk for layouts (#41902) 2022-10-27 16:50:46 -07:00
__mocks__ Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
development Resolve RSC / HTML rendering errors in error overlay (#43332) 2022-11-25 13:06:42 +01:00
e2e Always transform styled-jsx for rsc and error with client-only condition (#43386) 2022-11-26 00:36:18 +00:00
integration Resolve RSC / HTML rendering errors in error overlay (#43332) 2022-11-25 13:06:42 +01:00
lib Resolve RSC / HTML rendering errors in error overlay (#43332) 2022-11-25 13:06:42 +01:00
production Fix app render: escape segment value #42626 (#42823) 2022-11-17 17:45:39 -08:00
unit chore: Update swc_core to v0.43.23 (#42977) 2022-11-19 18:18:31 -08:00
.gitignore Fix server html insertion target (#42591) 2022-11-07 18:16:13 +01:00
jest-setup-after-env.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
jest.d.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00

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