File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
packages/react-on-rails-pro Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ export default {
2828
2929 // Allow Jest to transform react-on-rails package from node_modules
3030 transformIgnorePatterns : [ 'node_modules/(?!react-on-rails)' ] ,
31+ // RSC tests needs the node condition "react-server" to run
32+ // So, before running these tests, we set "NODE_CONDITIONS=react-server"
3133 testEnvironmentOptions : process . env . NODE_CONDITIONS
3234 ? {
3335 customExportConditions : process . env . NODE_CONDITIONS . split ( ',' ) ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ const PromiseWrapper = ({ promise }: { promise: Promise<React.ReactNode> }) => {
8080 const promiseResult = React . use ( promise ) ;
8181
8282 // In case that an error happened during the rendering of the RSC payload before the rendering of the component itself starts
83- // RSC bundle will return an error object serilaized inside the RSC payload
83+ // RSC bundle will return an error object serialized inside the RSC payload
8484 if ( promiseResult instanceof Error ) {
8585 throw promiseResult ;
8686 }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ gsub_file_content(
4848gsub_file_content (
4949 "../packages/react-on-rails-pro/package.json" ,
5050 /"test-rsc": "(?:\\ "|[^"])*",/ ,
51- '"test-rsc": "exit 0",' ,
51+ '"test-rsc": "exit 0",'
5252)
5353# Keep modern JSX transform for React 18+
5454# gsub_file_content("../tsconfig.json", "react-jsx", "react")
You can’t perform that action at this time.
0 commit comments