Skip to content

Commit f961a3b

Browse files
refactor: ensure RSC support variable is reset in packs_generator_spec for improved test isolation
1 parent cb6ef79 commit f961a3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/dummy/spec/packs_generator_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def self.configuration
3737
)
3838
allow(ReactOnRails::Utils).to receive_messages(generated_assets_full_path: packer_source_entry_path,
3939
server_bundle_js_file_path: server_bundle_js_file_path)
40+
if ReactOnRails::Utils.instance_variable_defined?(:@rsc_support_enabled)
41+
ReactOnRails::Utils.remove_instance_variable(:@rsc_support_enabled)
42+
end
4043
end
4144

4245
after do

0 commit comments

Comments
 (0)