Commit 1f1030e
Fix SCSS rule detection to use proper filename in test
Changed rule.test.test('.scss') to rule.test.test('example.scss')
because webpack SCSS rules typically use patterns like /\.scss$/
which require a full filename to match properly, not just the
extension.
The string '.scss' doesn't match /\.scss$/ but 'example.scss' does.
This fixes the test failures where CSS wasn't being loaded, making
React components appear as empty divs (not visible).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent b4c4cc3 commit 1f1030e
File tree
2 files changed
+2
-2
lines changed- react_on_rails_pro/spec/dummy/config/webpack
- spec/dummy/config/webpack
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments