Skip to content

Commit 45adfd2

Browse files
ihabadhamclaude
andcommitted
Add test coverage for Redux generator directory isolation
Add test to verify that Redux installations do not create the HelloWorld/ror_components directory that should only exist for non-Redux installations. This test prevents regression of issue #1821 where Redux generator was incorrectly creating CSS files in the wrong directory structure. The test runs in both JavaScript and TypeScript Redux contexts to ensure complete coverage. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 06b0dd5 commit 45adfd2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/react_on_rails/support/shared_examples/react_with_redux_generator_examples.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@
2323
app/javascript/src/HelloWorldApp/ror_components/HelloWorldApp.client.jsx
2424
app/javascript/src/HelloWorldApp/ror_components/HelloWorldApp.server.jsx].each { |file| assert_file(file) }
2525
end
26+
27+
it "does not create non-Redux HelloWorld ror_components directory" do
28+
assert_no_directory "app/javascript/src/HelloWorld/ror_components"
29+
assert_no_file "app/javascript/src/HelloWorld/ror_components/HelloWorld.module.css"
30+
end
2631
end

0 commit comments

Comments
 (0)